ComponentsInput OTP
Input OTP
A segmented numeric input for verification codes with automatic focus movement.
Installation
bunx @swift-rust/ui add input-otp
Usage
tsx
1import { InputOTP } from "@/components/ui/input-otp";23<InputOTP4length={class="text-amber-400">6}5onChange={(code) => console.log(code)}6/>