Money input
CoreA currency field with live grouping, stable width, rolling digits, and minor-unit output.
pnpm dlx shadcn@latest add https://wui.alann.works/r/money-input.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
label* | string | required |
hideLabel | boolean | — |
value | number | null | — |
defaultValue | number | null | — |
onValueChange | (value: number | null, details: MoneyInputDetails) => void | — |
currency | string | — |
defaultCurrency | string | — |
onCurrencyChange | (currency: string) => void | — |
currencies | string[] | — |
min | number | — |
max | number | — |
quickAdd | number[] | — |
step | number | — |
locale | string | — |
description | string | — |
error | string | — |
disabled | boolean | — |
name | string | — |
id | string | — |
className | string | — |
onBlur | (event: ReactFocusEvent<HTMLInputElement>) => void | — |