Number Field
- from @hirael
Number input with step buttons, arrow-key and hold-to-repeat stepping, min and max, and Intl formatting for currency, percent or units. Submits the raw number.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @hirael/number-fieldLive preview
No live preview has been built for this component yet.
Registry dependencies3
- compose-refs
- input-group
- use-controllable-state
