Package Exports
- vue-chill-code-input
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-chill-code-input) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Vue Chill Code Input
Easy Verification Code Input for your Vue projects
Why tho
- user friendly UI
- customizable length
- support for copy & paste
- v-model API
- chill vibes
- written in Typescript
Currently working with Vue2 projects only. Vue3 support coming soon.
Install
npm i vue-chill-code-inputUsage
import VueChillCodeInput from 'vue-chill-code-input';
<VueChillCodeInput :fields="6" v-model="myValue"/>API
Props
| name | type | required | default |
|---|---|---|---|
| fields | Number | false | 4 |
| autoFocus | Boolean | false | false |
Events
| name | when | data |
|---|---|---|
| done | on fields filled | input value |
| blur | when blurred | - |
Methods
| name | desc |
|---|---|
| focus | focuses on input (on the first column) |
| blur | blurs input |
Warning
- early alpha version under heavy development
- any part of API can be changed