

Every state


default


focus


filled


formats-on-blur


filled-gbp


jpy


error-min


error-max


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "transfer-amount" | Input id; the label, bounds and error hang off it. |
| name | string | "amount" | Form name; a hidden input carries the plain number. |
| label | string | "Amount" | Visible label. |
| description | string | – | Help text under the label. |
| currency | string | "EUR" | Currency (ISO code); sets the symbol, its side and the decimals. JPY has none. |
| locale | string | "en-IE" | Locale for Intl.NumberFormat. |
| min | number | 10 | Smallest amount; shown under the field and checked on blur. |
| max | number | 5000 | Largest amount; shown under the field and checked on blur. |
| defaultValue | number | – | Starting amount. |
| placeholder | string | – | Placeholder; defaults to zero in the currency's format. |
| required | boolean | true | Marks the field required. |
| disabled | boolean | – | Disables the field. |
| error | string | – | An error from outside, shown until the value changes. |
| onValueChange | (value: number | null) => void | – | The parsed amount when the field is left; null when empty or unreadable. |
| className | string | – | Extra classes on the outer Field. |


