Preview
Enter the six-digit code.
Usage
InputOTP usage<InputOTP label="Verification code" name="code" length={6} pattern="[0-9]{6}" />API
InputOTP APIInputOTPProps
| prop | type | notes |
|---|---|---|
| label | string | |
| name | string | |
| length | number | |
| id? | string | |
| defaultValue? | string | |
| inputMode? | 'numeric' | 'text' | |
| pattern? | string | |
| error? | string | null | |
| hint? | RemixNode | |
| required? | boolean | |
| disabled? | boolean | |
| readOnly? | boolean | |
| autoComplete? | 'one-time-code' | 'off' | |
| enterKeyHint? | 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | |
| mix? | MixInput |