Component packs › Dials › Rotary Knob
A knurled knob with a ring of 31 lights: drag up, round the rim or scroll, it clicks every step and Shift turns it finely.
Rotary Knob is a knob from Dials, a component pack with 8 components: Physical controls that click: dials, wheels, rings and switches with real detents. Price: $2 for the whole pack.
Built with: two drag modes, light ring, fine adjust.
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 |
|---|---|---|---|
value | number | ||
min | number | ||
max | number | ||
step | number | ||
label | string | ||
theme | 'dark' | 'light' | ||
sound | boolean | ||
haptics | boolean | ||
autoplay | boolean | ||
onChange | (v: number) => void |
readonly value: numberset(v: number): voiddestroy(): voidimport RotaryKnob from './RotaryKnob';
<RotaryKnob />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Knobs and dials.