examples/input-otp-pin.tsx
1import { InputOtp } from "@/components/wensity/input-otp";23export function InputOtpPin() {4 return (5 <InputOtp6 label="Device PIN"7 mode="numeric"8 length={4}9 masked10 hint="Use your PIN."11 />12 );13}
A polished OTP field for verification and two-factor auth flows.
Practical examples and common states for the same installable component.
Short numeric codes for device PINs and quick unlock flows.
Alphanumeric recovery codes with custom group separators.
Backup codes accept letters and numbers.
Show a confirmed code without the muted disabled treatment.
Remount with `key={attempt}` to clear slots after external actions.
Requires: button
Recovery actions after a failed verification attempt.
Requires: button
Hide entered characters for PIN-style entry.
Group digits with separators for easier scanning.
Compose with FormField for labels and validation layout.
Requires: buttonform-field