263
The 6-digit code step: a centred code field split 3 + 3, a shake when the code is wrong, a resend timer that counts down and a mail icon that turns into a check.
akaotp·verification code·email
Run this in any project set up for the shadcn CLI. It copies the Verify Email source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/verify-email.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { VerifyEmail } from "@/components/verify-email";
export default function Page() {
return <VerifyEmail />;
}A free React screen in the Auth collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Verify Email source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| string | "ada@ridgeline.app" | |
| length | number | 6 |
| resendAfter | number | 30 |
| onVerify | (code: string) => Promise<VerifyResult> | demoVerify |
| onResend | () => void | — |
| onChangeEmail | () => void | — |
| onContinue | () => void | — |
| className | string | — |