0.1.1 • Published 4 years ago

react-hook-pin-input v0.1.1

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

react-hook-pin-input

🎉A pin code input

Live demo

Install

npm install --save react-hook-pin-input

Usage

import React, { Component } from 'react';

import PinInput from 'react-hook-pin-input';

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

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
classNamestringclass name
valuesarraydefault values

License

MIT © elevensky