Edit page
Home
Getting Started
Components
Forms
AddressSmartInputAsyncCreatableSelectAsyncSelectCheckboxCreatableSelectCurrencyInputPropsExampleDropzoneDropzoneImagesFormErrorFormLabelImageCropInputGroupNumberInputPasswordInputPhoneInputRadioSelectSliderInputTextInputTextMaskInputTextareaToggle
Typography
Utilities
Visualization Components

CurrencyInput

Input specifically for formatting into currency. Primarily used to enter and edit currency in forms.

Props

allowDecimal
Bool
true
allowNegative
Bool
true
currency
String
"USD"
disabled
Bool
false
error
Bool
locale
String
"en-US"
name
String
required
onChange
Func
required
output
'currency' │ 'number'
'number'
showCode
Bool
true
size
'small' │ 'medium' │ 'large'
'large'
value
number │ string

Example

USD
{
    "allowNegative": true,
    "currency": "USD",
    "disabled": false,
    "allowDecimal": true,
    "locale": "fe-FR",
    "output": "number",
    "showCode": true,
    "size": "large",
    "value": ""
}