react-pin-widget
v1.0.4
Published
A flexible and easy to use react pin component
Downloads
44
Readme
React Pin Widget
An easy to use Pin Component for React.
Installation
Using npm:
npm i --save react-pin-widget
Using yarn:
yarn add react-pin-widget
Usage
import ReactPin from 'react-pin-widget'
Properties
It is the number of pin input.
<ReactPin length={5} />
It is the type of input.
<ReactPin type='alphabet'/>
Values accepted
Used to style pin inputs
emits and event on every key input.
const fillHandler = (val) => {
console.log(val)
}
<ReactPin onFill={fillHandler}/>
Demo
https://react-components-playground.vercel.app/react-pin
Author: github.com/M-Blaze
Link to package: https://www.npmjs.com/package/react-pin-widget
Link to repository: https://github.com/M-Blaze/react-pin-widget