OTP Input
Buttons
An accessible OTP/PIN input component with auto-focus, paste support, keyboard navigation, and animated focus states.
Loading preview...
Customize
Length:
Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
length | 4 | 5 | 6 | 6 | Number of OTP digits. |
value | string | '' | Current OTP value. |
onChange | (value: string) => void | undefined | Callback when the OTP value changes. |
disabled | boolean | false | Disables the OTP input. |
className | string | '' | Additional CSS classes. |