Knob

A rotary dial with a bevelled cap and ticks that light up to the value. Drag up or down, or use the keyboard.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Knob3D props

PropTypeDefaultDescription
valuenumberCurrent value when controlled.
defaultValuenumber40Starting value when uncontrolled.
onChange(value: number) => voidCalled with the new value whenever it changes.
minnumber0Lowest allowed value.
maxnumber100Highest allowed value.
stepnumber1Amount the value snaps to and changes by per key press.
labelstringAccessible name for the knob.
sizenumber150Diameter in px.
showValuebooleantrueShow the number inside the knob.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks