Component packs › Pips › Dice Pagination

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.

Dice Pagination props

PropTypeDefaultDescription
pagesnumber7Number of pages, 2 to 12. Default 7.
pagenumber1Current page, from 1. Default 1.
labelstring"Pages"Accessible name. Default "Pages".
onChange(page: number) => void
autoplaynumber | falseShowcase mode: moves to another page every N ms while visible.

Methods on the ref

Use it in React

import DicePagination from './DicePagination';

<DicePagination />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Pips

Good for: Skeuomorphic UI.