FormsCurrency Input
Currency Input
The CurrencyInput is similar to the TextInput with a couple of small differences.
CurrencyInputProps
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
align | left|right | — | left | — |
maximumFractionDigits | 0|2|4|5|8 | — | 2 | — |
minimumFractionDigits | 2|4|5|8 | — | 2 | — |
onChange | (value: string | number) => void | Yes | — | — |
showAdornment | boolean | — | true | When true, a dollar symbol ($) will be displayed beside the input. |
value | string | number | Yes | — | — |
Also accepts Omit< InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size' >, Partial<Omit<InputBaseProps, 'shape'>> | ||||