2.0.0 • Published 3 years ago

react-pin-code-input v2.0.0

Weekly downloads
65
License
MIT
Repository
github
Last release
3 years ago

react-pin-code-input

React component for entering and validating a PIN code.

Installation

npm i --save react-pin-code-input or yarn add react-pin-code-input

Important instructions

  • value has to be an state type Array(numberOfFields >= 1).fill('').
  • OnInputChange should update the value state.
  • Redefined pattern should consider empty and limit to 1 character. Template /^$|^(Your allowed key)$/

Storybook

https://albertsabate.github.io/react-pin-code-input/

License

MIT

2.0.0

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago