OTP Code

One-time password verification with auto-focus, keyboard navigation, and resend cooldown timer. Features animated input fields with glow effects and focus states.

core-landing-pagesauthotpverificationcode2fasecurity

Props

Customize the component with these props

PropertyTypeDefaultDescription
title
string"Verify Identity"Title text displayed at the top of the form.
subtitle
string"Enter the 4-digit code sent to your device."Subtitle text displayed below the title.
length
number4Number of OTP code digits.
onComplete
(code: string) => voidundefinedCallback function called when OTP code is complete.
onResend
() => voidundefinedCallback function called when resend button is clicked.
resendCooldown
number30Cooldown time in seconds before resend is allowed.
className
stringundefinedAdditional CSS classes for custom styling.
autoFocus
booleantrueWhether to automatically focus the first input field.
OTP Code - Core Landing Pages Component | UILora