Components
Input Otp
A input-otp component
Preview
Loading...
import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot,} from "@/registry/axon/ui/input-otp";export default function InputOTPDemo() { return ( <InputOTP maxLength={6}> <InputOTPGroup> <InputOTPSlot index={0} /> <InputOTPSlot index={1} /> <InputOTPSlot index={2} /> </InputOTPGroup> <InputOTPSeparator /> <InputOTPGroup> <InputOTPSlot index={3} /> <InputOTPSlot index={4} /> <InputOTPSlot index={5} /> </InputOTPGroup> </InputOTP> );}Installation
CLI
npx shadcn@latest add @emberui/input-otpyarn shadcn@latest add @emberui/input-otppnpm dlx shadcn@latest add @emberui/input-otpbunx --bun shadcn@latest add @emberui/input-otpReference
This component is based on the shadcn/ui Input Otp component.