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