Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsCore inputs & forms

Phone verification

A two-step phone verification flow: country code and formatted number, then a 6-digit code with a resend countdown, wrong-code and lockout errors, and a verified state.

Preview

  1. 1Phone number
  2. 2Code

Verify your phone

We’ll text you a 6-digit code. Standard rates may apply.

United States numbers have 10 digits.

Live: any valid number, then code 424242

  1. Phone number (done)
  2. 2Code

Enter the code

Sent to +1 (415) 555-0123.

4
2
4
2

The code expires in 10 minutes.

Didn’t get it?Resend in 0:24

Code step, resend in 0:24

  1. Phone number (done)
  2. 2Code

Enter the code

Sent to +44 7700 900123.

That code didn’t match. 2 tries left.

Didn’t get it?

Wrong code, resend unlocked

  1. Phone number (done)
  2. Code (done)

Phone verified

+1 (415) 555-0123

Verified

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
onSendCode(e164: string) => void | Promise<void>—Sends a code; reject to show an error.
onVerify(e164: string, code: string) => boolean | Promise<boolean>—Resolves true when the code is right.
onVerified(e164: string) => void—Called after a successful verification.
defaultCountrystring"US"ISO code preselected in the phone field.
resendSecondsnumber30Countdown before Resend unlocks.
maxAttemptsnumber3Wrong codes allowed before the input locks.
defaultStep"phone" | "code" | "verified""phone"Start mid-flow (previews).
defaultPhone / defaultCode / defaultErrorstring—Preview state for the number, code and error.
defaultSecondsLeftnumberresendSecondsStarting countdown value.
clockRunningbooleantrueLet the countdown tick; turn off for static previews.

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗