| ariaLabel | (index: number, total: number) => `Digit ${index + 1} of ${total}` | func |
Function to generate aria-label for each input field. Receives current index (0-based) and total number of inputs. |
| autoSubmit | false | boolean |
Automatically submit the form when all one time password fields are filled. |
| disabled | false | boolean |
Disable all one time password (OTP) input fields. |
| defaultValue | - | string, number |
Initial value for uncontrolled Vue.js one time password input. |
| feedback | - | string |
Provide valuable, actionable feedback. |
| feedbackInvalid | - | string |
Provide valuable, actionable feedback. |
| feedbackValid | - | string |
Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, :invalid and :valid. |
| floatingClassName | - | string |
A string of all className you want applied to the floating label wrapper. |
| floatingLabel | - | string |
Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, :invalid and :valid. |
| id | - | string |
ID attribute for the hidden input field. |
| invalid | - | boolean |
Set component validation state to invalid. |
| label | - | string |
Add a caption for a component. |
| linear | true | boolean |
Enforce sequential input (users must fill fields in order). |
| masked | false | boolean |
Show input as password (masked characters). |
| modelValue | - | string, number |
The default name for a value passed using v-model. |
| name | - | string |
Name attribute for the hidden input field. |
| placeholder | - | string |
Placeholder text for input fields. Single character applies to all fields, longer strings apply character-by-character. |
| readonly | false | boolean |
Make Vue.js OTP input component read-only. |
| required | false | boolean |
Makes the input field required for form validation. |
| size | - | string |
Sets the visual size of the Vue.js one time password (OTP) input. Use 'sm' for small or 'lg' for large input fields. |
| text | - | string |
Add helper text to the component. |
| tooltipFeedback | - | boolean |
Display validation feedback in a styled tooltip. |
| type | 'number' | string |
Input validation type: 'number' for digits only, or 'text' for free text. |
| valid | - | boolean |
Set component validation state to valid. |
| value | - | string, number |
The current value of the one time password input. |