Component packs › Pips › Dice Pagination
The current page is a die that rolls along the row, one quarter turn per page, faster on long trips.
Dice Pagination is a pagination from Pips, a component pack with 6 dice controls: Controls built from dice that tumble, bounce and land the way dice do. Price: $2 for the whole pack.
Built with: board-game token, chained tips, nav with aria-current.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
pages | number | 7 | Number of pages, 2 to 12. Default 7. |
page | number | 1 | Current page, from 1. Default 1. |
label | string | "Pages" | Accessible name. Default "Pages". |
onChange | (page: number) => void | ||
autoplay | number | false | Showcase mode: moves to another page every N ms while visible. |
readonly page: numbersetPage(page: number, silent?: boolean): voiddestroy(): voidimport DicePagination from './DicePagination';
<DicePagination />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.