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

1.3.1Ā ā€¢Ā 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
placeholder array input placeholder

License

MIT Ā© suweya

Install

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

DownloadsWeekly Downloads

4

Version

1.3.1

License

MIT

Unpacked Size

63.7 kB

Total Files

8

Last publish

Collaborators

  • ghranek