Function
PaginationLink
({
className,
isActive,
size = "icon",
...props
}: PaginationLinkProps)
Source from the content-addressed store, hash-verified
| 43 | React.ComponentProps<"a"> |
| 44 | |
| 45 | function PaginationLink({ |
| 46 | className, |
| 47 | isActive, |
| 48 | size = "icon", |
| 49 | ...props |
| 50 | }: PaginationLinkProps) { |
| 51 | return ( |
| 52 | <a |
| 53 | aria-current={isActive ? "page" : undefined} |
| 54 | data-slot="pagination-link" |
| 55 | data-active={isActive} |
| 56 | className={cn( |
| 57 | buttonVariants({ |
| 58 | variant: isActive ? "outline" : "ghost", |
| 59 | size, |
| 60 | }), |
| 61 | className |
| 62 | )} |
| 63 | {...props} |
| 64 | /> |
| 65 | ) |
| 66 | } |
| 67 | |
| 68 | function PaginationPrevious({ |
| 69 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected