Input OTP
A one-time passcode field split into slots.
components/ui/input-otp.tsx
Preview
Code
Installation
npx betterone-ds add input-otpProps
| Prop | Type | Default |
|---|---|---|
| maxLength | number | required |
| pattern | string | digits |
Accessibility
- Supports paste and the one-time-code autocomplete hint.

