Component packs › Pips › Pip Rating

Pip Rating

Pick a score and the die tips the short way to that face, with a higher hop when it has to go over two faces.

Pip Rating is a rating 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: quaternion turn, per-face lighting, radio group.

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.

Pip Rating props

PropTypeDefaultDescription
valuenumber41 to 6. Default 4.
labelsstring[]Words for each score, 1 to 6.
labelstring"Rating"Accessible group name. Default "Rating".
disabledboolean
onChange(value: number) => void
autoplaynumber | falseShowcase mode: picks a new score every N ms while visible.

Methods on the ref

Use it in React

import PipRating from './PipRating';

<PipRating />

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

More in Pips

Good for: Skeuomorphic UI.