Pagination
Move through a long collection with clear bounds.
npx shadcn@latest add @silicon-ui/paginationInstallation
With the shadcn CLI
npx shadcn@latest add @silicon-ui/paginationManually
Install the dependencies
npm install lucide-react motionCopy these files into your project
- components/silicon-ui/pagination/pagination.tsx
- components/silicon-ui/pagination/pagination.module.css
Add the foundation, once per app, for the design and motion tokens
npx shadcn@latest add @silicon-ui/silicon-foundation
Usage
API reference
| Prop | Type | Default |
|---|---|---|
page* | number | — |
pageCount* | number | — |
onPageChange* | (page: number) => void | — |
label | string | "Pagination" |
Dependencies
- npm
- lucide-reactmotion
- Registry
- silicon-motion-tokens