@quantfive/react-verification-code-input
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

react-verification-code-input

🎉A verification code input

NPM JavaScript Style Guide

NPM

Live demo

Install

npm install --save react-verification-code-input

Usage

import React, { Component } from 'react';

import ReactCodeInput from 'react-verification-code-input';

class Example extends Component {
  render() {
    return <ReactCodeInput />;
  }
}

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.3
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.3
    8

Package Sidebar

Install

npm i @quantfive/react-verification-code-input

Weekly Downloads

8

Version

1.2.3

License

MIT

Unpacked Size

60.1 kB

Total Files

10

Last publish

Collaborators

  • valmack
  • joshslee
  • leo.sun
  • joeypereira
  • lightning.lu10
  • lilnamcor
  • craiglu