MCPcopy Create free account
hub / github.com/arctic-cli/interface / PaginationLink

Function PaginationLink

packages/web/components/ui/pagination.tsx:47–74  ·  view source on GitHub ↗
({
  className,
  isActive,
  size = "icon",
  render,
  ...props
}: PaginationLinkProps)

Source from the content-addressed store, hash-verified

45} & useRender.ComponentProps<"a">;
46
47function 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
76function PaginationPrevious({
77 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected