OTP Verification

A smooth, animated OTP (One-Time Password) input component with auto-focus, backspace support, and customizable length.

ui Premium PlanNew Release

Availability

Included in Premium Plans

This flagship component is part of Future UI's monthly & yearly Premium plans and is not distributed via the free public CLI.

Import

import { OTPVerification } from "@/components/ui/otp-verification"
Layout Variant
Color Theme
Shape
Spacing

Named Keys & Props

Pass these exact named keys as props on <OTPVerification />. Click any color pill to copy the prop.

colorDefault is "default"(Black & White)
variantVisual style
"default""solid""glass""neon"
shapeCorner shape
"default""square""rounded""sharp"
spacingInner spacing
"default""2x""4x""6x""8x"

Usage Example

A basic implementation example to get you started.

Example Implementation
import { OTPVerification } from"@/components/ui/otp-verification";

export default function Example() {
 return (
 <OTPVerification 
 length={6} 
 onVerify={(code) => console.log(code)} 
 />
 );
}

Features

Key capabilities and highlights.

Key Capabilities
  • ◆Automatic focus shifting to the next input upon entry.
  • ◆Backspace handling to move focus back to the previous input.
  • ◆Arrow key navigation for seamless editing.
  • ◆Customizable length (defaults to 6 digits).
  • ◆Sleek visual design with smooth transitions.

Notes

Important implementation details to consider.

Implementation Details
  • ◆Plan: Included in Future UI Monthly & Yearly Premium Plans.
  • ◆Dependencies: Requires framer-motion and lucide-react.
  • ◆Usage: Drop into your verification or authentication flows.