Skip to main content
A two-step verification component. Users enter their email, receive a code, and enter it to authenticate.

Properties

PropertyTypeDescriptionDefault
Code LengthNumberNumber of digits in the OTP code6
Accent ColorColorButton and input focus color#9EE86F
Expiry TimeNumberCode expiry time in seconds300 (5 min)

Features

  • Step 1: Email input to receive OTP
  • Step 2: Code input boxes (4-6 digits)
  • Auto-focus next input on digit entry
  • Auto-submit when all digits are entered
  • Code expiry timer
  • Resend code option

Usage

  1. Insert the component on your OTP page
  2. Configure the code length (4 or 6 digits)
  3. Set the expiry time based on your security needs
  4. The backend sends the code via email using your branding settings
OTP verification is great as a second factor after email/password sign-in, or as a standalone passwordless authentication method.