Spice Slider
FREEA range slider that heats up from green to red, with a value bubble.
React 19Tailwind 4added 2026-12-05
live preview · spice slider
Medium
Installation
Into your bowl in one line.
The CLI drops the source straight into your project. You own every line; there’s no package to update.
- 01
Add it with the CLI
$ npx bowls@latest add spice-slider - 02
Serve it
Paste the source into
components/bowls/spice-slider.tsxand import it — the Code tab’s demo.tsx shows a full example.
Props
| PROP | TYPE | DEFAULT | WHAT IT DOES |
|---|---|---|---|
| label | string | — | Visible label. |
| min / max | number | 0 / 100 | Range. |
| defaultValue | number | 40 | Starting value. |
| levels | [string, string, string] | ["Mild","Medium","Hot"] | Words for each third. |
| onChange | (value: number) => void | — | Called as it moves. |