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.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | Current value when controlled. | |
| defaultValue | number | 40 | Starting value when uncontrolled. |
| onChange | (value: number) => void | Called with the new value whenever it changes. | |
| min | number | 0 | Lowest allowed value. |
| max | number | 100 | Highest allowed value. |
| step | number | 1 | Amount the value snaps to and changes by per key press. |
| label | string | Accessible name for the knob. | |
| size | number | 150 | Diameter in px. |
| showValue | boolean | true | Show the number inside the knob. |
| className | string | Extra classes added to the outer element. |