react-pin-code-input
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i react-pin-code-input

Weekly Downloads

7

Version

2.0.0

License

MIT

Unpacked Size

35.5 kB

Total Files

10

Last publish

Collaborators

  • albertsabate