Component packs › Pips › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 4 | 1 to 6. Default 4. |
labels | string[] | Words for each score, 1 to 6. | |
label | string | "Rating" | Accessible group name. Default "Rating". |
disabled | boolean | ||
onChange | (value: number) => void | ||
autoplay | number | false | Showcase mode: picks a new score every N ms while visible. |
readonly value: numbersetValue(value: number, silent?: boolean): voiddestroy(): voidimport PipRating from './PipRating';
<PipRating />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.