1.2.5 • Published 4 years ago

@gabtrompiz/react-verification-code-input v1.2.5

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

react-verification-code-input

🎉A verification code input

NPM JavaScript Style Guide

NPM

Forked

THIS IS A FORK FROM suweya's PACKAGE

Live demo

Install

npm install --save @gabtrompiz/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

KeyTypeDesc
typetextone of number or text
fieldsnumberThe count of characters
onChangefuncTrigger on character change
onCompletefuncTrigger on all character inputs
fieldWidthnumberinput width
fieldHeightnumberinput height
autoFocusboolauto focus first input on init
titlestringcode input title
loadingboolshow loading flag
classNamestringclass name
valuesarraydefault values

License

MIT © suweya THIS IS A FORK FROM suweya's PACKAGE