Forms

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.

PropValues and behaviorDefault
currencyISO 4217 coderequired
localestringen-US
entryModedecimal | minor-unitdecimal
currencyDisplaysymbol | narrowSymbol | code | nonesymbol
submitValueformatted | rawformatted
defaultValuedecimal stringempty