CurrencyInput
Numeric input with locale-aware currency symbol prefix and formatting.
Installation
Examples
USD amount
Currency symbol prefix with formatted value.
$
€
₱
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number|string | — | Controlled numeric value. |
| onChange | (v: number|undefined) => void | — | Called on change. |
| currency | string | 'USD' | ISO 4217 currency code. |
| locale | string | 'en-US' | BCP 47 locale for formatting. |
| placeholder | string | '0.00' | Placeholder text. |
| invalid | boolean | false | Error state. |