BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/skeuomorph-krzysztof/pagination

pagination

skeuomorph-krzysztof/pagination
FreeComponent

skeuomorph-krzysztof publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by skeuomorph-krzysztof on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://skeuomorph.krzysztof.studio/r/styles/new-york/pagination.json

Source

ui/pagination.tsxskeuomorph.krzysztof.studio/r/styles/new-york/pagination.json
1import * as React from "react"
2import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"
3
4import { cn } from "@/lib/utils"
5import { ButtonProps, buttonVariants } from "@/registry/new-york/ui/button"
6
7const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
8 <nav
9 role="navigation"
10 aria-label="pagination"
11 className={cn("mx-auto flex w-full justify-center", className)}
12 {...props}
13 />
14)
15Pagination.displayName = "Pagination"
16
17const PaginationContent = React.forwardRef<
18 HTMLUListElement,
19 React.ComponentProps<"ul">
20>(({ className, ...props }, ref) => (
21 <ul
22 ref={ref}
23 className={cn("flex flex-row items-center gap-1", className)}
24 {...props}
25 />
26))
27PaginationContent.displayName = "PaginationContent"
28
29const PaginationItem = React.forwardRef<
30 HTMLLIElement,
31 React.ComponentProps<"li">
32>(({ className, ...props }, ref) => (
33 <li ref={ref} className={cn("", className)} {...props} />
34))
35PaginationItem.displayName = "PaginationItem"
36
37type PaginationLinkProps = {
38 isActive?: boolean
39} & Pick<ButtonProps, "size"> &
40 React.ComponentProps<"a">
41
42const PaginationLink = ({
43 className,
44 isActive,
45 size = "icon",
46 ...props
47}: PaginationLinkProps) => (
48 <a
49 aria-current={isActive ? "page" : undefined}
50 className={cn(
51 buttonVariants({
52 variant: isActive ? "outline" : "ghost",
53 size,
54 }),
55 className
56 )}
57 {...props}
58 />
59)
60PaginationLink.displayName = "PaginationLink"
61
62const PaginationPrevious = ({
63 className,
64 ...props
65}: React.ComponentProps<typeof PaginationLink>) => (
66 <PaginationLink
67 aria-label="Go to previous page"
68 size="default"
69 className={cn("gap-1 pl-2.5", className)}
70 {...props}
71 >
72 <ChevronLeft className="h-4 w-4" />
73 <span>Previous</span>
74 </PaginationLink>
75)
76PaginationPrevious.displayName = "PaginationPrevious"
77
78const PaginationNext = ({
79 className,
80 ...props
81}: React.ComponentProps<typeof PaginationLink>) => (
82 <PaginationLink
83 aria-label="Go to next page"
84 size="default"
85 className={cn("gap-1 pr-2.5", className)}
86 {...props}
87 >
88 <span>Next</span>
89 <ChevronRight className="h-4 w-4" />
90 </PaginationLink>
91)
92PaginationNext.displayName = "PaginationNext"
93
94const PaginationEllipsis = ({
95 className,
96 ...props
97}: React.ComponentProps<"span">) => (
98 <span
99 aria-hidden
100 className={cn("flex h-9 w-9 items-center justify-center", className)}
101 {...props}
102 >
103 <MoreHorizontal className="h-4 w-4" />
104// … truncated

What it pulls in

Other registry items

  • button

Files it writes

  • ui/pagination.tsx

Facts

Registry
skeuomorph-krzysztof
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-04
Last confirmed
today

Go to the source

Docs on skeuomorph-krzysztof skeuomorph.krzysztof.studio krzysztoff1/ui-skeuomorph on GitHub Raw registry item This item as JSON

More from skeuomorph-krzysztof

All 54 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionskeuomorph-krzysztofComponentsFree1 dep
alertalertskeuomorph-krzysztofComponentsFreeno deps
alert-dialogalert-dialogskeuomorph-krzysztofComponentsFree1 dep
aspect-ratioaspect-ratioskeuomorph-krzysztofComponentsFree1 dep
avataravatarskeuomorph-krzysztofComponentsFree1 dep
badgebadgeskeuomorph-krzysztofComponentsFree1 dep
breadcrumbbreadcrumbskeuomorph-krzysztofComponentsFree1 dep
buttonbuttonskeuomorph-krzysztofComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex