Component packs › Pips › Dice Stepper

Dice Stepper

Each step tips the die onto the next face; past six a second die drops onto the felt and bounces.

Dice Stepper is a stepper 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: true face order, drop and bounce, spinbutton.

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 Stepper props

PropTypeDefaultDescription
valuenumber3Default 3.
minnumber1Default 1.
maxnumber12Up to 12. Default 12.
labelstringAccessible name, e.g. "Players".
disabledboolean
onChange(value: number) => void
autoplaynumber | falseShowcase mode: steps up and down every N ms while visible.

Methods on the ref

Use it in React

import DiceStepper from './DiceStepper';

<DiceStepper />

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

More in Pips

Good for: Skeuomorphic UI.