Skip to content
Verify phone, light
Light
Verify phone, dark
Dark

Every state

  • Verify phone, default, light
    Verify phone, default, dark

    default

  • Verify phone, focus, light
    Verify phone, focus, dark

    focus

  • Verify phone, filled, light
    Verify phone, filled, dark

    filled

  • Verify phone, error, light
    Verify phone, error, dark

    error

  • Verify phone, sending, light
    Verify phone, sending, dark

    sending

  • Verify phone, code, light
    Verify phone, code, dark

    code

  • Verify phone, code-error, light
    Verify phone, code-error, dark

    code-error

  • Verify phone, verified, light
    Verify phone, verified, dark

    verified

  • Verify phone, filled-gb, light
    Verify phone, filled-gb, dark

    filled-gb

  • Verify phone, code-us, light
    Verify phone, code-us, dark

    code-us

  • Verify phone, disabled, light
    Verify phone, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"phone-verify"Base id; the number field is <id>-number and the code field <id>-code.
namestring"phone"Form field name of the number (the code is <name>Code).
country"NL" | "GB" | "DE" | "BE" | "FR" | "US""NL"Dial code, number grouping, length check and example number.
labelstring"Mobile number"Visible label of the number field.
descriptionstring–Help text under the number field; defaults to a line about the text message.
defaultNumberstring–Starting national number, digits or formatted (a leading 0 is dropped).
defaultCodestring–Starting code (previews).
step"number" | "sending" | "code" | "verifying" | "verified""number"Step to start on.
codeLengthnumber6Digits in the code.
resendSecondsnumber30Wait before Resend code can be used again.
sendCode(phone: string) => Promise<boolean>–Sends the code to the full number (+31612345678); resolve false to show an error. The default waits and succeeds.
verifyCode(phone: string, code: string) => Promise<boolean>–Resolves true when the code matches. The default accepts any code but 000000.
onVerified(phone: string) => void–Called with the full number once it is verified.
errorstring–Error under the number field.
codeErrorstring–Error under the code field.
disabledboolean–Disables both steps.
classNamestring–Extra classes on the outer wrapper.

More phone inputs

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