Function
PaginationLink
({ className, isActive, size = "icon", ...props }: PaginationLinkProps)
Source from the content-addressed store, hash-verified
| 36 | React.ComponentProps<"a">; |
| 37 | |
| 38 | function PaginationLink({ className, isActive, size = "icon", ...props }: PaginationLinkProps) { |
| 39 | return ( |
| 40 | <a |
| 41 | aria-current={isActive ? "page" : undefined} |
| 42 | data-slot="pagination-link" |
| 43 | data-active={isActive} |
| 44 | className={cn( |
| 45 | buttonVariants({ |
| 46 | variant: isActive ? "outline" : "ghost", |
| 47 | size, |
| 48 | }), |
| 49 | className, |
| 50 | )} |
| 51 | {...props} |
| 52 | /> |
| 53 | ); |
| 54 | } |
| 55 | |
| 56 | function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>) { |
| 57 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected