This component no longer exists. It was in ondo-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-09 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
pagination
ondo-ui/paginationRemovedComponent
Pagination with page navigation, next and previous links.
Install it
npx shadcn@latest add https://ui.ondo.dou.so/r/pagination.jsonSource
1import * as React from "react"23import { cn } from "@/lib/utils"4import { Button } from "@/components/ui/button"5import { IconChevronLeft, IconChevronRight, IconDots } from "@tabler/icons-react"67function Pagination({ className, ...props }: React.ComponentProps<"nav">) {8 return (9 <nav10 role="navigation"11 aria-label="pagination"12 data-slot="pagination"13 className={cn("mx-auto flex w-full justify-center", className)}14 {...props}15 />16 )17}1819function PaginationContent({20 className,21 ...props22}: React.ComponentProps<"ul">) {23 return (24 <ul25 data-slot="pagination-content"26 className={cn("flex items-center gap-1", className)}27 {...props}28 />29 )30}3132function PaginationItem({ ...props }: React.ComponentProps<"li">) {33 return <li data-slot="pagination-item" {...props} />34}3536type PaginationLinkProps = {37 isActive?: boolean38} & Pick<React.ComponentProps<typeof Button>, "size"> &39 React.ComponentProps<"a">4041function PaginationLink({42 className,43 isActive,44 size = "icon",45 ...props46}: PaginationLinkProps) {47 return (48 <Button49 variant={isActive ? "outline" : "ghost"}50 size={size}51 className={cn(className)}52 nativeButton={false}53 render={54 <a55 aria-current={isActive ? "page" : undefined}56 data-slot="pagination-link"57 data-active={isActive}58 {...props}59 />60 }61 />62 )63}6465function PaginationPrevious({66 className,67 text = "Previous",68 ...props69}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {70 return (71 <PaginationLink72 aria-label="Go to previous page"73 size="default"74 className={cn("pl-2!", className)}75 {...props}76 >77 <IconChevronLeft data-icon="inline-start" />78 <span className="hidden sm:block">{text}</span>79 </PaginationLink>80 )81}8283function PaginationNext({84 className,85 text = "Next",86 ...props87}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {88 return (89 <PaginationLink90 aria-label="Go to next page"91 size="default"92 className={cn("pr-2!", className)}93 {...props}94 >95 <span className="hidden sm:block">{text}</span>96 <IconChevronRight data-icon="inline-end" />97 </PaginationLink>98 )99}100101function PaginationEllipsis({102 className,103 ...props104}: React.ComponentProps<"span">) {105 return (106 <span107 aria-hidden108 data-slot="pagination-ellipsis"109 className={cn(110// … truncated
What it pulls in
npm packages
Other registry items
