| maxlength* | number | — |
- Name
- maxlength
- Description
How many characters the code has: one slot each, and complete fires when the last is filled. - Type
number- Default
- —
|
| textAlign | 'center' | 'right' | 'left' | — |
- Name
- textAlign
- Description
Aligns the text in the hidden <input>, which decides where a long press or click-and-hold lands. - Type
'center' | 'right' | 'left'- Default
- —
|
| inputmode | 'numeric' | 'text' | — |
- Name
- inputmode
- Description
The on-screen keyboard mobile browsers open: digits, or full text. - Type
'numeric' | 'text'- Default
- —
|
| containerClass | string | — |
- Name
- containerClass
- Description
Classes added to the element that wraps the slots and the hidden input. - Type
string- Default
- —
|
| pushPasswordManagerStrategy | 'none' | 'increase-width' | — |
- Name
- pushPasswordManagerStrategy
- Description
How to keep a password manager's badge off the last slot: widen the field, or do nothing. - Type
'none' | 'increase-width'- Default
- —
|
| noScriptCssFallback | string | null | — |
- Name
- noScriptCssFallback
- Description
CSS that keeps the hidden input usable when JavaScript is off; null leaves it out. - Type
null | string- Default
- —
|
| defaultValue | any | — |
- Name
- defaultValue
- Description
The code the field starts with when uncontrolled. - Type
any- Default
- —
|
| pasteTransformer | ((pasted: string | undefined) => string) | — |
- Name
- pasteTransformer
- Description
Rewrites pasted text before it fills the slots, e.g. to strip the dash from 123-456. - Type
(pasted: string | undefined): string- Default
- —
|
| nonce | string | — |
- Name
- nonce
- Description
Applied to the injected <style> tag, for a nonce-based style-src CSP. - Type
string- Default
- —
|
| accept | string | — |
- Name
- accept
- Description
Set on the hidden <input> the code is typed into, as its accept attribute. - Type
string- Default
- —
|
| alt | string | — |
- Name
- alt
- Description
Set on the hidden <input> the code is typed into, as its alt attribute. - Type
string- Default
- —
|
| autocomplete | string | — |
- Name
- autocomplete
- Description
The autocomplete hint; one-time-code lets the browser offer a code it received by SMS. - Type
string- Default
- —
|
| autofocus | boolean | false |
- Name
- autofocus
- Description
Focuses the field when it mounts. - Type
boolean- Default
- false
|
| capture | boolean | 'user' | 'environment' | — |
- Name
- capture
- Description
Set on the hidden <input> the code is typed into, as its capture attribute. - Type
boolean | 'user' | 'environment'- Default
- —
|
| checked | boolean | any[] | Set<any> | — |
- Name
- checked
- Description
Set on the hidden <input> the code is typed into, as its checked attribute. - Type
boolean | any[] | Set<any>- Default
- —
|
| crossorigin | string | — |
- Name
- crossorigin
- Description
Set on the hidden <input> the code is typed into, as its crossorigin attribute. - Type
string- Default
- —
|
| disabled | boolean | false |
- Name
- disabled
- Description
- Type
boolean- Default
- false
|
| enterKeyHint | 'done' | 'enter' | 'go' | 'next' | 'previous' | 'search' | 'send' | — |
- Name
- enterKeyHint
- Description
Set on the hidden <input> the code is typed into, as its enterKeyHint attribute. - Type
'done' | 'enter' | 'go' | 'next' | 'previous' | 'search' | 'send'- Default
- —
|
| form | string | — |
- Name
- form
- Description
Set on the hidden <input> the code is typed into, as its form attribute. - Type
string- Default
- —
|
| formaction | string | — |
- Name
- formaction
- Description
Set on the hidden <input> the code is typed into, as its formaction attribute. - Type
string- Default
- —
|
| formenctype | string | — |
- Name
- formenctype
- Description
Set on the hidden <input> the code is typed into, as its formenctype attribute. - Type
string- Default
- —
|
| formmethod | string | — |
- Name
- formmethod
- Description
Set on the hidden <input> the code is typed into, as its formmethod attribute. - Type
string- Default
- —
|
| formnovalidate | boolean | false |
- Name
- formnovalidate
- Description
Set on the hidden <input> the code is typed into, as its formnovalidate attribute. - Type
boolean- Default
- false
|
| formtarget | string | — |
- Name
- formtarget
- Description
Set on the hidden <input> the code is typed into, as its formtarget attribute. - Type
string- Default
- —
|
| height | number | — |
- Name
- height
- Description
Set on the hidden <input> the code is typed into, as its height attribute. - Type
number- Default
- —
|
| indeterminate | boolean | false |
- Name
- indeterminate
- Description
Set on the hidden <input> the code is typed into, as its indeterminate attribute. - Type
boolean- Default
- false
|
| list | string | — |
- Name
- list
- Description
Set on the hidden <input> the code is typed into, as its list attribute. - Type
string- Default
- —
|
| max | number | — |
- Name
- max
- Description
Set on the hidden <input> the code is typed into, as its max attribute. - Type
number- Default
- —
|
| min | number | — |
- Name
- min
- Description
Set on the hidden <input> the code is typed into, as its min attribute. - Type
number- Default
- —
|
| minlength | number | — |
- Name
- minlength
- Description
Set on the hidden <input> the code is typed into, as its minlength attribute. - Type
number- Default
- —
|
| multiple | boolean | false |
- Name
- multiple
- Description
Set on the hidden <input> the code is typed into, as its multiple attribute. - Type
boolean- Default
- false
|
| name | string | — |
- Name
- name
- Description
Set on the hidden <input> the code is typed into, as its name attribute. - Type
string- Default
- —
|
| pattern | string | — |
- Name
- pattern
- Description
A regular expression every typed or pasted character must match; others are dropped. - Type
string- Default
- —
|
| placeholder | string | — |
- Name
- placeholder
- Description
Set on the hidden <input> the code is typed into, as its placeholder attribute. - Type
string- Default
- —
|
| readonly | boolean | false |
- Name
- readonly
- Description
Set on the hidden <input> the code is typed into, as its readonly attribute. - Type
boolean- Default
- false
|
| required | boolean | false |
- Name
- required
- Description
Set on the hidden <input> the code is typed into, as its required attribute. - Type
boolean- Default
- false
|
| size | number | — |
- Name
- size
- Description
Set on the hidden <input> the code is typed into, as its size attribute. - Type
number- Default
- —
|
| spellcheck | boolean | false |
- Name
- spellcheck
- Description
Set on the hidden <input> the code is typed into, as its spellcheck attribute. - Type
boolean- Default
- false
|
| src | string | — |
- Name
- src
- Description
Set on the hidden <input> the code is typed into, as its src attribute. - Type
string- Default
- —
|
| step | number | — |
- Name
- step
- Description
Set on the hidden <input> the code is typed into, as its step attribute. - Type
number- Default
- —
|
| type | string | — |
- Name
- type
- Description
Set on the hidden <input> the code is typed into, as its type attribute. - Type
string- Default
- —
|
| value | any | — |
- Name
- value
- Description
The code shown, when the field is controlled. - Type
any- Default
- —
|
| width | number | — |
- Name
- width
- Description
Set on the hidden <input> the code is typed into, as its width attribute. - Type
number- Default
- —
|
| modelValue | string | — |
- Name
- modelValue
- Description
The code, bound with v-model. - Type
string- Default
- —
|
| class | ClassValue | — |
- Name
- class
- Description
Classes added to the part's own element, after its recipe classes. - Type
null | string | false | Record<string, any> | ClassValue[]- Default
- —
|