vue verification code input is a really simple verification code (also called PIN) input component for Vue.js. Supports both numbers and text.
Must Read: Emoji Captcha Verification For Websites | eCaptcha
Vue JS Verification Code Input Details
Post Name | Vue Verification Code Input |
Author Name | suweya |
Category | Form Plugins, Vue |
Official Page | Click Here | Click Here |
Official Website | github.com |
Publish Date | April 4, 2022 |
Last Update | August 3, 2023 |
Download | Link Below |
License | MIT |
How to make use of it:
Install & Download:
# NPM $ npm i vue-verification-code-input --save
1. Import the component.
import CodeInput from "vue-verification-code-input";
2. Basic usage:
<template> <div id="app"> <CodeInput :loading="false" class="input" v-on:change="onChange" v-on:complete="onComplete" /> </div> </template>
export default { name: "app", components: { CodeInput }, methods: { onChange(v) { console.log("onChange ", v); }, onComplete(v) { console.log("onComplete ", v); } } };
3. All possible props:
type: { type: String, default: "number" // or text }, className: String, fields: { type: Number, default: 6 }, fieldWidth: { type: Number, default: 58 }, fieldHeight: { type: Number, default: 54 }, autoFocus: { type: Boolean, default: true }, disabled: { type: Boolean, default: false }, required: { type: Boolean, default: false }, title: String, change: Function, complete: Function, loading: { type: Boolean, default: false }
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 |
See Demo And Download

Official Website(suweya): Click Here
This superior jQuery/javascript plugin is developed by suweya. For extra advanced usage, please go to the official website.