Form input
OTP input
Paste, autofill, edit, and group a code without multi-input focus traps.Playground
Configure the component and copy synchronized Vue code.
Token map
The manual manifest combines inherited token owners with local deltas.
MOtpInput · All17 tokens
md-otp-inputMOtpInput API
Props, slots, and events are generated from the current public kit contract.
Props
NameTypeDefault
disabledPrevents interaction and applies the disabled visual state.booleanfalseloadingReplaces content with progress feedback and prevents interaction.booleanfalsereadonlybooleanfalselengthnumber6mode'numeric' | 'alphanumeric''numeric'groupsnumber[]() => []separatorGlyph between groups. Empty by default — the gap already separates them.string''maskboolean | stringfalseautofocusbooleanfalselabelThe accessible name. Has no default on purpose: the kit does not invent user-facing copy in a language it cannot know. A field with neither this nor a `#label` slot warns in dev — it would ship unnamed.stringundefinedlabelPlacement'top' | 'hidden''top'errorbooleanfalseerrorMessagestringundefinedpathstringundefinednamestringundefinedSlots
Events
@completestring@invalidstring@clearvoid