Money input
An amount of money, with the symbol where the locale writes it, digits grouped as they are typed, and the value in minor units.
npx shadcn add https://kinoui.com/r/money-input.jsonCopy install command
Examples
Default
Type an amount and its digits group as you go; the value is in cents, and the decimals fill in when you leave it.
Locale
locale puts the symbol on its side and sets the separators; the currency sets the decimals, none for yen.
Min and max
With allowOutOfRange, an amount past max stays as typed and the field shows why it can’t go. The arrow keys step by step, here $10.
Currency
MoneyInputCurrency picks the currency from a list you give; the amount keeps its number.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/money-input.json- Files
lib/refs.tslib/reduce-motion.tscomponents/kino/input.tsxlib/resize.tslib/roll.tsxcomponents/kino/number-field.tsxlib/field-control.tsxlib/scroll.tslib/swap.tsxlib/popup.tslib/glide.tsxcomponents/kino/tooltip.tsxlib/cut.tsxcomponents/kino/label.tsxcomponents/kino/spinner.tsxcomponents/kino/button.tsxcomponents/kino/separator.tsxlib/run-progress.tslib/highlight.tslib/menu.tsxcomponents/kino/select.tsxlib/filter-list.tsxlib/chip.tsxlib/flow.tscomponents/kino/combobox.tsxcomponents/kino/textarea.tsxcomponents/kino/input-group.tsxlib/addon-picker.tsxlib/countries.tsxlib/number-format.tscomponents/kino/money-input.tsx- Packages
@base-ui/reactclass-variance-authoritycountry-flag-icons- 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
MoneyInput
MoneyInputCurrency
Accessibility
- The currency’s name, such as “US Dollar”, describes the input; the symbol beside it is for the eye only.
- The arrow keys step it and Shift with them by
largeStep; Home and End move the caret, as in any text. - Typing never moves the caret off the digit it was beside, though separators come and go; Backspace on a separator removes the digit before it.
- The keyboard on a phone shows a decimal point, or digits only for a currency without decimals.
- When the system asks for less motion, stepped digits only crossfade.