Number field
A number field with a stepper on each side, whose digits roll up or down when the value is stepped.
npx shadcn add https://kinoui.com/r/number-field.jsonCopy install command
Examples
Default
Step it with the buttons, the arrow keys or the wheel and its digits roll; typing never rolls.
Format
format takes Intl.NumberFormat options, and Shift steps by largeStep. For money, use the Money input.
Scrub area
Wrap the label in NumberFieldScrubArea to change the value by dragging it.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/number-field.json- Files
lib/refs.tslib/reduce-motion.tscomponents/kino/input.tsxlib/resize.tslib/roll.tsxcomponents/kino/number-field.tsx- Packages
@base-ui/react- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
NumberField
Accessibility
- The input is a spin button: the arrow keys step it, Shift with them steps by
largeStep, and Home and End go tominandmax. - A stepper turns off at the limit it can’t pass.
- The rolling digits are drawn over the input for the eye only; screen readers read the input’s value.
- When the system asks for less motion, the digits only crossfade.