Pagination
neobrutalism-components/paginationFreeComponent
Neobrutalism Components publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by Neobrutalism Components on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.neobrutalism.dev/r/pagination.jsonSource
1import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"23import * as React from "react"45import { buttonVariants } from "@/components/ui/button"67import { cn } from "@/lib/utils"89function Pagination({ className, ...props }: React.ComponentProps<"nav">) {10 return (11 <nav12 data-slot="pagination"13 role="navigation"14 aria-label="pagination"15 className={cn("mx-auto flex w-full justify-center", className)}16 {...props}17 />18 )19}2021function PaginationContent({22 className,23 ...props24}: React.ComponentProps<"ul">) {25 return (26 <ul27 data-slot="pagination-content"28 className={cn("flex flex-row items-center gap-1", className)}29 {...props}30 />31 )32}3334function PaginationItem({ className, ...props }: React.ComponentProps<"li">) {35 return (36 <li data-slot="pagination-item" className={cn("", className)} {...props} />37 )38}3940function PaginationLink({41 className,42 isActive,43 size = "icon",44 ...props45}: React.ComponentProps<"a"> & {46 isActive?: boolean47 size?: "default" | "sm" | "lg" | "icon"48}) {49 return (50 <a51 data-slot="pagination-link"52 aria-current={isActive ? "page" : undefined}53 className={cn(54 buttonVariants({55 variant: "noShadow",56 size,57 }),58 className,59 isActive && "bg-black text-white",60 )}61 {...props}62 />63 )64}6566function PaginationPrevious({67 className,68 ...props69}: React.ComponentProps<typeof PaginationLink>) {70 return (71 <PaginationLink72 data-slot="pagination-previous"73 aria-label="Go to previous page"74 size="default"75 className={cn("gap-1 pl-2.5", className)}76 {...props}77 >78 <ChevronLeft className="size-4" />79 <span>Previous</span>80 </PaginationLink>81 )82}8384function PaginationNext({85 className,86 ...props87}: React.ComponentProps<typeof PaginationLink>) {88 return (89 <PaginationLink90 data-slot="pagination-next"91 aria-label="Go to next page"92 size="default"93 className={cn("gap-1 pr-2.5", className)}94 {...props}95 >96 <span>Next</span>97 <ChevronRight className="size-4" />98 </PaginationLink>99 )100}101102function PaginationEllipsis({103 className,104 ...props105}: React.ComponentProps<"span">) {106 return (107 <span108 data-slot="pagination-ellipsis"109 aria-hidden110// … truncated
What it pulls in
Other registry items
Files it writes
More from Neobrutalism Components
All 92 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | Neobrutalism Components | Components | Free | 1 dep | |
| Alertalert | Neobrutalism Components | Components | Free | no deps | |
| Alert dialogalert-dialog | Neobrutalism Components | Components | Free | 1 dep | |
| Avataravatar | Neobrutalism Components | Components | Free | 1 dep | |
| Badgebadge | Neobrutalism Components | Components | Free | no deps | |
| Breadcrumbbreadcrumb | Neobrutalism Components | Components | Free | 1 dep | |
| Buttonbutton | Neobrutalism Components | Components | Free | 1 dep | |
| Calendarcalendar | Neobrutalism Components | Components | Free | 2 deps |
