Description
Kinetic is a React scrub number input for shadcn/ui. It works like the number fields in design tools such as Figma: drag horizontally or vertically to change the value by a step, click to edit the full value, or use the up and down arrow keys to nudge it. Holding Alt gives fine steps and holding Shift gives coarse steps, and Home and End jump to the minimum or maximum. Enter commits an edit and Escape reverts it. The digit animation is credited to Calligraph. Kinetic is a shadcn registry component, so you install it with the shadcn CLI and the source files are copied into your project. The API reference covers controlled and uncontrolled values, change and commit callbacks, minimum and maximum clamps, step sizes, wheel nudging, scrub direction and pixel sensitivity. The project is MIT licensed, and its source is on GitHub.…
Highlights
- Drag to scrub a number, click to type a value
- Alt for fine steps and Shift for coarse steps
- Keyboard support with arrows, Home, End, Enter and Escape
- Controlled or uncontrolled value with change callbacks
- Installs as a shadcn registry component
Ratings & Reviews
No ratings yet
Be the first to rate kinetic.
People also visit
kinetic FAQ
What is Kinetic?
A React scrub number input for shadcn/ui. You can drag to change a number, click to type a value, or use the arrow keys.
How do I install it?
Install it as a shadcn registry component with the shadcn CLI, which copies the source files into your project.
What keyboard shortcuts does it support?
Up and Down nudge the value. Alt gives fine steps and Shift gives coarse steps. Home and End go to the minimum or maximum, and Enter or Escape commit or revert an edit.
Is it open source?
Yes. It is MIT licensed, and the source is on GitHub.
Can I control the value from my own state?
Yes. The API supports a controlled value as well as an uncontrolled defaultValue, with change and commit callbacks.
What are the best kinetic alternatives?
Popular alternatives to kinetic include number-flow, Animated shadcn/ui and 23rd. See all kinetic alternatives


