KQ-074 · DICE/ROLL
Dice Roll
Hold to charge — the die swells and shivers while an arc fills — then release to tumble two full turns and land on a face you chose: outcomes come from a prop or a fixed sequence, never chance.
KQ-074 · DICE/ROLL
Allocation DieKQ-074
Last roll · —
No priors
Hold to charge, release to roll - the die always answers.
Install
One command — the source lands in your repo. Or copy it from the Code tab.
$ pnpm dlx shadcn@latest add @kinetiq/dice-roll
Props
- value / onRoll
- number / (value) => void
- default —
- Controlled outcome for the next roll, and the landing callback.
- sequence
- number[]
- default —
- Uncontrolled outcomes, cycled in order — deterministic by design.
- size
- number
- default 88
- Die edge in px.
| Prop | Type | Default | Description |
|---|---|---|---|
| value / onRoll | number / (value) => void | — | Controlled outcome for the next roll, and the landing callback. |
| sequence | number[] | — | Uncontrolled outcomes, cycled in order — deterministic by design. |
| size | number | 88 | Die edge in px. |