Component packs › Groove › Detent Knob
Turn it round or drag it up and down: it settles into detents with a little overshoot, lights each tick it passes and glows with the real output level.
Detent Knob is a volume knob from Groove, a component pack with 8 components: Audio components with real sound, made live in the browser. Price: $2 for the whole pack.
Built with: detent spring, LED level ring, slider role.
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 |
|---|---|---|---|
label | string | ||
value | number | 62 | 0..100. Default 62. |
steps | number | 24 | Number of detents. Default 24. |
sound | boolean | true | Let the knob drive the volume of the built-in loop (with a play button). Default true. |
onChange | (value: number) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: turns by itself until touched. |
readonly value: numberset(v: number): voiddestroy(): voidimport DetentKnob from './DetentKnob';
<DetentKnob />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Audio player UI.