Component packs › Groove › Detent Knob

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.

Detent Knob props

PropTypeDefaultDescription
labelstring
valuenumber620..100. Default 62.
stepsnumber24Number of detents. Default 24.
soundbooleantrueLet the knob drive the volume of the built-in loop (with a play button). Default true.
onChange(value: number) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: turns by itself until touched.

Methods on the ref

Use it in React

import DetentKnob from './DetentKnob';

<DetentKnob />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Groove

Good for: Audio player UI.