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

Every state

  • Masked field, default, light
    Masked field, default, dark

    default

  • Masked field, focus, light
    Masked field, focus, dark

    focus

  • Masked field, typing, light
    Masked field, typing, dark

    typing

  • Masked field, filled, light
    Masked field, filled, dark

    filled

  • Masked field, error, light
    Masked field, error, dark

    error

  • Masked field, disabled, light
    Masked field, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"iban"Input id; the label, description and error point at it.
namestring"iban"Form field name.
labelstring"IBAN"Visible label.
descriptionstring–Help text; the expected format is added after it.
mask{ pattern: string; example: string; inputMode: "text" | "numeric"; autoComplete: string; uppercase?: boolean }IBAN, "AA99 AAAA 9999 9999 99"The mask as data: A = letter, 9 = digit, * = either, anything else is a separator typed for you. Also sets the keyboard and autofill token.
defaultValuestring–Starting value, formatted on load.
requiredboolean–Marks the field required.
disabledboolean–Disables the field.
errorstring–Error from outside; overrides the field's own length error.
lengthErrorstring"That's too short. An IBAN looks like {format}."Shown on blur when the value is incomplete; {format} becomes the example.
onValueChange(raw: string, formatted: string) => void–Called with the bare characters and the formatted text.
classNamestring–Extra classes on the outer Field.

More input groups

All 14
input-group-10 is in UI ProGet UI Pro, €199

Preview

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

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