vue-verification-code-input

πŸŽ‰A verification code input
73,557 56
Install
npm install vue-verification-code-input
Latest Version:1.0.0
Vue:2
License:MIT
Last Updated:Dec 11, 2022
Links: GitHub  ·  npm
Maintainer: suweya89

vue-verification-code-input

πŸŽ‰A verification code input

NPM JavaScript Style Guide

NPM

Live demo

Install

npm install --save vue-verification-code-input

Usage

<template>
  <div id="app">
    <CodeInput :loading="false" class="input" v-on:change="onChange" v-on:complete="onComplete" />
  </div>
</template>

<script>
import CodeInput from "vue-verification-code-input";

export default {
  name: "app",
  components: {
    CodeInput
  },
  methods: {
    onChange(v) {
      console.log("onChange ", v);
    },
    onComplete(v) {
      console.log("onComplete ", v);
    }
  }
};
</script>

PropTypes

Key Type Desc
type text one of number or text
fields number The count of characters
onChange func Trigger on character change
onComplete func Trigger on all character inputs
fieldWidth number input width
fieldHeight number input height
autoFocus bool auto focus first input on init
title string code input title
loading bool show loading flag
className string class name
values array default values

License

MIT Β© suweya

Related Packages

vue3-verification-code-input

πŸŽ‰A verification code input for vue 3

52,575 6
vue-chill-code-input

Easy Verification Code Input for your Vue projects

2,085 4
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

Version History

Version Released License
1.0.0 MIT