ez-otp-input
0.0.7 • Public • Published
npm i ez-otp-input --save
or
yarn add ez-otp-input
// Introduced in vue file
import EzOtpInput from 'ez-otp-input';
Vue.use(EzOtpInput);
// Introduced in vue file
import { EzOtpInput } from 'ez-otp-input';
export default {
name: 'MyComponent',
...
components: {
EzOtpInput
}
}
Props |
Type |
Default |
Description |
value |
String |
|
use v-model to automatically set your local value |
length |
Number |
4 |
sets the length of the OTP |
disable |
Boolean |
false |
disables the input |
placeholder |
String |
-- |
placeholder for each character input |
autoSubmit |
Boolean |
true |
flag to trigger @filled event when model is equal to length
|
Event |
Param |
Description |
filled |
|
triggered when all input fields are filled up. Can be enabled/disabled via the autoSubmit prop |
Package Sidebar
Install
Weekly Downloads