Email verification
Confirm an address with a six-digit code that checks itself when complete, with resend and a way to fix a typo.
Caliper UI
The code is 246810. Any other code is rejected.
When to use
- Right after sign up.
- Someone changes the email on their account.
When not to use
- Signing in without a password; use the magic link form.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/email-verification
Adds its 8 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
EmailVerification
10 props
PropTypeDefaultDescription
email *string—
titlestring"Verify your email"
lengthnumber6Number of digits in the code.
resendAfternumber30
onVerify *(code: string) => AuthActionResult | Promise<AuthActionResult>—
onResend(() => AuthActionResult | Promise<AuthActionResult>)—
onChangeEmail(() => void)—
onContinue(() => void)—Shown once the address is verified.
continueLabelstring"Continue"
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics, with aria-label and aria-busy kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/email-verification.mdThe index of every part is at /llms.txt.
More in Settings & security
Settings screenSettings that show what changed before you save: an ember mark and the previous value on each field, one bar that names the changes.Password resetForgot password and choose a new one: a cooldown on resend, wording that never reveals who has an account, and clear expired and saved states.MFA challengeThe second step of sign in: authenticator, text, passkey or recovery code, with a lockout that counts down after too many tries.