Search
Search components and blocks
Pagination
Numbered pages with a shared layoutId pill sliding between the active number — the same technique behind the sidebar's active-tab highlight, applied here instead of a plain color swap.
| Customer | Plan | MRR |
|---|---|---|
| Acme Inc. | Pro | $490 |
| Globex | Team | $120 |
| Initech | Pro | $490 |
Install
$ pnpm dlx shadcn@latest add @ditherui/pagination
Props
PropTypeDefault
pagenumber—totalPagesnumber—onPageChange(page: number) => void—siblingCountnumber1When to use the pagination
Use pagination for paged lists and tables. A shared layout pill slides between the active page numbers.
Open the CLI tab on any preview above for the exact shadcn command. The source is copied into your project, so you can edit it like any other file.