Skip to content
Phone with country code, light
Light
Phone with country code, dark
Dark

Every state

  • Phone with country code, default, light
    Phone with country code, default, dark

    default

  • Phone with country code, focus, light
    Phone with country code, focus, dark

    focus

  • Phone with country code, filled, light
    Phone with country code, filled, dark

    filled

  • Phone with country code, filled-gb, light
    Phone with country code, filled-gb, dark

    filled-gb

  • Phone with country code, filled-us, light
    Phone with country code, filled-us, dark

    filled-us

  • Phone with country code, error, light
    Phone with country code, error, dark

    error

  • Phone with country code, disabled, light
    Phone with country code, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"phone"Id of the number input; the label, description and error point at it.
namestring"phone"Form name of the hidden full number in E.164 (+31612345678).
labelstring"Phone number"Visible label.
descriptionstring–Help text under the field.
country"NL" | "GB" | "DE" | "BE" | "FR" | "US""NL"Country picked at the start; sets the dial code, grouping and placeholder.
defaultValuestring–Starting number, national (06 12345678) or without the trunk 0.
onCountryChange(country: PhoneCountry) => void–Fires when the country code changes.
onValueChange(e164: string) => void–Fires with the full number on every change.
requiredboolean–Marks the field required.
disabledboolean–Disables the select and the number.
errorstring–Error message; without one, a too-short number shows a hint on blur.
classNamestring–Extra classes on the outer Field.

More phone inputs

All 3

Preview

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

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