vue-auth-code-input

Authentication code input component in vue
2,814
Install
npm install vue-auth-code-input
Latest Version:1.0.1
Vue:2
License:MIT
Last Updated:Apr 23, 2019
Links: GitHub  ·  npm
Maintainer: waningflow

vue-auth-code-input

Authentication code input component in vue

Install

yarn add vue-auth-code-input

Usage

<template>
  <div>
    <vue-auth-code-input @inputChange="handleChange"/>
  </div>
</template>
<script>
import VueAuthCodeInput from 'vue-auth-code-input'
export default {
  components: {
    VueAuthCodeInput
  },
  methods: {
    handleChange(code, index){
      console.log(code)
    }
  }
}
</script>

Attributes

name type description required default
codeLength Number set the length of authentication code No 6

Event

name parameters description
inputChange codeArray, changedIndex When some input value changes
inputComplete codeArray, changedIndex When all input value are not empty

Related Packages

vue-input-code

基于vue2.0+的验证码输入组件

1,140 67
@loltech/vue3-2fa-code-input

Vue 3 input component for 2FA codes. Is alpha-numerically agnostic, supports cop...

7,587 4
vue-chill-code-input

Easy Verification Code Input for your Vue projects

2,085 4
@sp-uvb/nuxt

Nuxt module for Universal Verification Broker (UVB) authentication

424

Version History

Version Released Vue License
1.0.1 ^2.6.8 MIT
1.0.0 ^2.6.8 MIT