Torque Dial
A rotational control dial with realistic physical angular momentum, velocity tracking, and exponential friction deceleration.
48%
Master Output GainInstallation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/torque-dial
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | — | Current numeric value |
| min | number | 0 | Minimum dial threshold |
| max | number | 100 | Maximum dial threshold |
| step | number | 1 | Step resolution increment |
| onChange | (val: number) => void | — | Callback fired on rotation value updates |
| momentum | boolean | true | Enables velocity-based inertial spin after drag release |
| size | number | 120 | Diameter in pixels |
| unit | string | '' | Optional unit suffix (e.g. "%", "dB", "°") |