Components/CurrencyInput

CurrencyInput

Numeric input with locale-aware currency symbol prefix and formatting.

Installation

Examples

USD amount

Currency symbol prefix with formatted value.

$

API Reference

PropTypeDefaultDescription
valuenumber|stringControlled numeric value.
onChange(v: number|undefined) => voidCalled on change.
currencystring'USD'ISO 4217 currency code.
localestring'en-US'BCP 47 locale for formatting.
placeholderstring'0.00'Placeholder text.
invalidbooleanfalseError state.