Skip to content

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages