GitHub

OTP Verify Form

Block
One-time password verification form

Basic Usage

Loading...

Installation

pnpm add @corew500/ui

Usage

import { OTPVerifyForm } from "@corew500/ui/blocks/otp-verify-form"

<OTPVerifyForm>Content</OTPVerifyForm>

API Reference

Props

PropTypeDefaultDescription
onFormSubmit(data: OTPVerifyFormData) => void—Called when the form is submitted
onResend() => void—Called when resend is clicked
loadingenumfalseWhether the form is in a loading state
successenumfalseWhen true, shows success state instead of form
glowenumfalseEnable glow effects
lengthnumber6OTP code length
emailstring—Email address for display
titlestringEnter verification code—
descriptionstring——
successTitlestringVerified!—
successDescriptionstringYour code has been verified successfully.—
successActionenum——
buttonLabels{ submit?: string; loading?: string; resend?: string; resendCooldown?: string; }{}—
errors{ code?: string; general?: string; }{}—
features{ autoSubmit?: boolean; }{}—
resendCooldownnumber60Resend cooldown in seconds