GitHub

Currency Input

Formatted currency input with prefix/suffix symbol, sizes, display mode, and validation states.

Prefix Symbol

Preview
$

Suffix Symbol

Preview
EUR

Sizes

Preview
$
$
$

Text Alignment

Preview
$

Display Mode

Preview
$

Validation States

Preview
$
Amount must be positive
$
Looks good!
ClassDescription
.currency-inputContainer (inline-flex)
.currency-input-symbolCurrency symbol element
.currency-input-symbol-prefixLeft-aligned symbol
.currency-input-symbol-suffixRight-aligned symbol
.currency-input-prefixWrapper modifier for prefix padding
.currency-input-suffixWrapper modifier for suffix padding
.currency-input-smSmall size
.currency-input-lgLarge size
.currency-input-align-leftLeft-align text
.currency-input-align-centerCenter-align text
.currency-input-align-rightRight-align text
.currency-input-displayLarge read-only display mode
.currency-input-errorError state
.currency-input-successSuccess state
.currency-input-fieldField wrapper (label + helper)
.currency-input-labelField label
.currency-input-helperHelper text
.currency-input-helper-errorError helper text
.currency-input.glassGlass morphism variant