Component packs › Dials › Rotary Knob

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.

Rotary Knob props

PropTypeDefaultDescription
valuenumber
minnumber
maxnumber
stepnumber
labelstring
theme'dark' | 'light'
soundboolean
hapticsboolean
autoplayboolean
onChange(v: number) => void

Methods on the ref

Use it in React

import RotaryKnob from './RotaryKnob';

<RotaryKnob />

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

More in Dials

Good for: Knobs and dials.