Skip to content

Component 001Inputs

Glass OTP

A cinematic verification experience. Frosted glass, orbiting digits, and a little delight in every interaction.

  • Next.js
  • Tailwind CSS
  • TypeScript
Any 4 digits will work.
Loading preview…
Live interactive preview

Quick start

Make it yours.

Save glass-otp.tsx in your components folder, then import it below. Use it in a Next.js project with Tailwind CSS.

TSXapp/page.tsx
import GlassOtp from "@/components/ui/glass-otp";

export default function VerificationPage() {
  return <GlassOtp />;
}

Behind the interaction

The details that make it work.

Designed to explore, ready to adapt.

Made to move

Orbiting digits and fluid state transitions bring a familiar interaction to life, with support for reduced motion.

Every detail considered

Keyboard navigation, code pasting, clear feedback, and a resend timer make verification feel effortless.

Yours to build with

One self-contained React component. Copy the source, add your verification callback, and make it your own.

Keep exploring

View all components