This allows a browser to display an appropriate virtual keyboard. Optional value: "numeric", "text", "tel". [Learn More](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode)
should-auto-focus
boolean
false
false
Auto focuses input on inital page load.
should-focus-order
boolean
false
false
Auto correct the input order. See https://github.com/ejirocodes/vue3-otp-input/pull/39
placeholder
array
false
[]
Specify an expected value for each input. Example: :placeholder="['*', '*', '*', '*']". The length of this array should be equal to num-inputs.
conditionalClass
array
false
[]
Specify a class to be applied to each input based on the value of the input. Example: :conditionalClass="['one', 'two', 'three', 'four']". The length of this array should be equal to num-inputs.
is-disabled
boolean
false
false
Disables all the input fields.
## ðĪš Methods
Name
Description
clearInput()
Use with ref for clearing all otp inputs, see code example section.
fillInput()
Use with ref for fill otp inputs. The value should be same length as `numInputs` length. See code example section.
## ðī Events
Name
Description
on-change
Return OTP code was changing when we made a change in inputs.
on-complete
Return OTP code typed in inputs.
## ðĪð― License
[MIT](https://choosealicense.com/licenses/mit/)
## ð Contributing
Contributions are always welcome!
See `contributing.md` for ways to get started.
Please adhere to this project's `code of conduct`.
## ð§ļ Appendix
This component is a rewite of [vue-otp-input](https://github.com/bachdgvn/vue-otp-input) component to support Vue 3.x. Feel free to use it in your project, report bugs and make PR ðð―.