Skip to content
Currency field, light
Light
Currency field, dark
Dark

Every state

  • Currency field, default, light
    Currency field, default, dark

    default

  • Currency field, focus, light
    Currency field, focus, dark

    focus

  • Currency field, filled, light
    Currency field, filled, dark

    filled

  • Currency field, formats-on-blur, light
    Currency field, formats-on-blur, dark

    formats-on-blur

  • Currency field, filled-gbp, light
    Currency field, filled-gbp, dark

    filled-gbp

  • Currency field, jpy, light
    Currency field, jpy, dark

    jpy

  • Currency field, error-min, light
    Currency field, error-min, dark

    error-min

  • Currency field, error-max, light
    Currency field, error-max, dark

    error-max

  • Currency field, disabled, light
    Currency field, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"transfer-amount"Input id; the label, bounds and error hang off it.
namestring"amount"Form name; a hidden input carries the plain number.
labelstring"Amount"Visible label.
descriptionstring–Help text under the label.
currencystring"EUR"Currency (ISO code); sets the symbol, its side and the decimals. JPY has none.
localestring"en-IE"Locale for Intl.NumberFormat.
minnumber10Smallest amount; shown under the field and checked on blur.
maxnumber5000Largest amount; shown under the field and checked on blur.
defaultValuenumber–Starting amount.
placeholderstring–Placeholder; defaults to zero in the currency's format.
requiredbooleantrueMarks the field required.
disabledboolean–Disables the field.
errorstring–An error from outside, shown until the value changes.
onValueChange(value: number | null) => void–The parsed amount when the field is left; null when empty or unreadable.
classNamestring–Extra classes on the outer Field.

More amount inputs

All 6

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans