Knob
Vintage hi-fi receiver dial with 270° radial rotation, vertical mouse drag, mouse wheel tuning, and tactile knurled edges.
Interactive Rotary Knob
Rotary receiver dial supporting vertical drag, mouse wheel adjustments, and arrow-key controls.
knob-example.tsx
Master Volume
68%
Tube Drive
42 dB
Size
Quick Import
Example.tsxtsx
1import { Knob } from "@rekodo/react";2
3export function Example() {4 return <Knob label="Master Volume" defaultValue={70} unit="%" />;5}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| value / defaultValue | number | 0 | Controlled or initial rotary dial position. |
| min / max / step | number | 0 / 100 / 1 | Dial rotation bounds and stepped snapping. |
| size | "sm" | "default" | "lg" | "default" | Rotary dial circumference. |
| label / unit | string | undefined | Monospace uppercase dial label and value suffix. |
| onValueChange | (value: number) => void | undefined | Fires during mouse drag, scroll wheel, or arrow-key changes. |