From code to confirmation
Blue input tiles merge and bounce into a glossy green success orb.
Component 029Forms
Four glossy blue input tiles tumble together and become a bouncing green check when your verification code is complete.
Quick start
Save verification-code.tsx in your components folder, then import it below. Use it in a Next.js project with Tailwind CSS.
import VerificationCode from "@/components/ui/verification-code";
export default function Example() {
return <VerificationCode />;
}Behind the interaction
Blue input tiles merge and bounce into a glossy green success orb.
Paste a code, navigate with arrow keys, and move backward with Backspace.
Asynchronous verification, failure feedback, resend cooldown, and retry are included.
Keep exploring
A frosted-glass sign-in and sign-up card with chamfered corners. Switching forms melts the content away, slides the two corner tabs together, sends out a ripple, and reveals the new form.
Pull the cord of a cream mushroom lamp to bathe a dark room in warm light and reveal a frosted glass sign-in card with a gold button.
Enter the 4-digit code sent to your
registered device.
Didn’t receive the code? Resend OTP
Enter the 4-digit code sent to your
registered device.
Didn’t receive the code?