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

Every state

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

    default

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

    focus

  • Phone with country detection, national, light
    Phone with country detection, national, dark

    national

  • Phone with country detection, detected-gb, light
    Phone with country detection, detected-gb, dark

    detected-gb

  • Phone with country detection, detected-us, light
    Phone with country detection, detected-us, dark

    detected-us

  • Phone with country detection, unknown, light
    Phone with country detection, unknown, dark

    unknown

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

    error

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

    disabled

Props

PropTypeDefaultWhat it does
idstring"mobile"Input id; the label, description and messages point at it.
namestring"mobile"Form name of the hidden full number in E.164 (+447700900123).
labelstring"Mobile number"Visible label.
descriptionstring–Help text under the field; the default explains the + prefix for other countries.
country"NL" | "GB" | "DE" | "BE" | "FR" | "US""NL"Country for national numbers (06…, 07700…); sets the placeholder too.
defaultValuestring–Starting text, national or international (+44, 0044).
onValueChange(value: { country?: PhoneAutoDetectCountry; e164: string }) => void–Fires with the detected country and the full number (empty while incomplete).
requiredboolean–Marks the field required.
disabledboolean–Disables the field.
errorstring–Error message; makes the field invalid.
classNamestring–Extra classes on the outer Field.

More phone inputs

All 3
phone-input-01 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