Getting Started
An unstyled rotary input for React. Supports dragging, scrolling, keyboard input, haptics and optional inertia.
Installation
pnpm add click-wheelCreate a click wheel
Root manages the value and interactions. Ring handles pointer, scroll and keyboard input. Rotor rotates with the gesture. Center is a button that does not start a drag. Use value for controlled state or defaultValue for uncontrolled state.
Style it
Add styles with className or style. This example uses Tailwind classes.
1:12 / 3:47