Verify Email 2 - Six-digit code with auto-submit
A bordered card with a six-slot one-time-code input that submits automatically once the last digit is typed, shows a verifying spinner and shakes on a wrong code. Use it when you email a numeric code instead of a link.
About Verify Email 2
A bordered card with a six-slot one-time-code input that submits automatically once the last digit is typed, shows a verifying spinner and shakes on a wrong code. Use it when you email a numeric code instead of a link.
Verify Email 2 is a free verify email block for React, built on shadcn/ui and Tailwind CSS. It ships as 114 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- verify email
- otp
- code
- auto-submit
- 2fa
- auth
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/verify-email-02Dependencies installed automatically: lucide-react.
Uses: button, input-otp, reveal, utils.
Usage
import VerifyEmail02 from "@/components/blocks/verify-email-02"
export default function Page() {
return <VerifyEmail02 />
}