Components / Input otp

Default

A 6-slot OTP field.

Value:

Custom Length

Configure the exact number of slots you need.

Disabled State

MayaInputOTP Props API

Prop / EventTypeDefaultDescription
modelValueString""The current value of the OTP input. Used with v-model.
lengthNumber6The number of input slots.
disabledBooleanfalseWhether the OTP input is disabled.
@update:modelValueEventEmitted when the OTP value changes.
@completeEventEmitted when all slots are filled.