Enter one-time passwords with grouped slots, separators, and control.
npx shadcn@latest add @preskok/input-otpimport { InputOTP } from "@/components/ui/preskok-ui/input-otp"
export function Example() {
return (
<InputOTP maxLength={6}>
<InputOTP.Group>
<InputOTP.Slot index={0} />
<InputOTP.Slot index={1} />
<InputOTP.Slot index={2} />
</InputOTP.Group>
<InputOTP.Separator />
<InputOTP.Group>
<InputOTP.Slot index={3} />
<InputOTP.Slot index={4} />
<InputOTP.Slot index={5} />
</InputOTP.Group>
</InputOTP>
)
}