BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/pagination

pagination

accelya-ui-lib/pagination
FreeComponent

shadcn/ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/ramsaoji/Accelya-UI-Lib/main/public/r/styles/default/pagination.json

Source

ui/pagination.tsxraw.githubusercontent.com/ramsaoji/Accelya-UI-Lib/main/public/r/styles/default/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/default/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

  • registry/default/ui/pagination.tsx

Facts

Registry
shadcn/ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
3 days ago

Go to the source

Docs on shadcn/ui ramsaoji/Accelya-UI-Lib on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 357 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn/uiComponentsFree1 dep
alertalertshadcn/uiComponentsFreeno deps
alert-dialogalert-dialogshadcn/uiComponentsFree1 dep
aspect-ratioaspect-ratioshadcn/uiComponentsFree1 dep
avataravatarshadcn/uiComponentsFree1 dep
badgebadgeshadcn/uiComponentsFree1 dep
breadcrumbbreadcrumbshadcn/uiComponentsFree1 dep
buttonbuttonshadcn/uiComponentsFree1 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