Page buttons with a raised thumb that slides to the current page. Long ranges collapse with ellipses.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| total | number | Total number of pages. | |
| page | number | Controlled current page, starting at 1. Pair it with onPageChange. | |
| defaultPage | number | 1 | Initial page when uncontrolled. |
| onPageChange | (page: number) => void | Called with the new page number when it changes. | |
| siblings | number | 1 | Pages shown either side of the current one. |
| className | string | Extra classes added to the outer element. |