CurrencyInput
Edit monetary amounts with locale-aware separators and a currency label attached to the field.
Basic usage
Pass the initial value as a canonical decimal string with a period and no grouping separator. submitValue="raw" submits the amount in major units without a currency symbol.
$
Enter an amount greater than or equal to zero.API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
currency | ISO 4217 code | required |
locale | string | en-US |
entryMode | decimal | minor-unit | decimal |
currencyDisplay | symbol | narrowSymbol | code | none | symbol |
submitValue | formatted | raw | formatted |
defaultValue | decimal string | empty |