Input OTP
A purpose-built numeric input for verification codes featuring auto-focusing slots, backspace regression, and paste support.
Default
A 6-slot OTP field.
Value:
Custom Length
Configure the exact number of slots you need.
Disabled State
MayaInputOTP Props API
| Prop / Event | Type | Default | Description |
|---|---|---|---|
modelValue | String | "" | The current value of the OTP input. Used with v-model. |
length | Number | 6 | The number of input slots. |
disabled | Boolean | false | Whether the OTP input is disabled. |
@update:modelValue | Event | — | Emitted when the OTP value changes. |
@complete | Event | — | Emitted when all slots are filled. |