Skip to content
caliper ui pro docs

Email verification

Confirm an address with a six-digit code that checks itself when complete, with resend and a way to fix a typo.

Pro
Caliper UI

Verify your email

Enter the 6-digit code we sent to dana@forma.studio. You can also open the link in that email.

0 of 6 digits.

Did not get it? Send again in 0:30

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.md

The index of every part is at /llms.txt.

More in Settings & security