Component packs › Pips › Pick a Number
A die is thrown to pick from your list; when it lands past the last choice it is rolled again.
Pick a Number is a random picker 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: face on top decides, re-roll rule, announced result.
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 |
|---|---|---|---|
options | string[] | Up to six choices. | |
title | string | Heading above the list. | |
label | string | "Pick one" | Button text. Default "Pick one". |
disabled | boolean | ||
onPick | (index: number, choice: string) => void | ||
autoplay | number | false | Showcase mode: picks every N ms while visible. | |
seed | number |
readonly picked: numberpick(): voiddestroy(): voidimport PickNumber from './PickNumber';
<PickNumber />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.