react-verification-code-input icon indicating copy to clipboard operation
react-verification-code-input copied to clipboard

Move to TS. Add some new props. Rewrite as a functional component

Open MikeSha opened this issue 4 years ago • 1 comments

  1. Adds new props on updates existing
  • values string | string[] default values
  • placeholder string | string[] [] input placeholder. If string, the one placeholder will be added to all inputs
  • inputClassNames string | string[] [] input classnames. If string, the one class will be added to all inputs
  • disabled boolean false disables all inputs
  • required boolean false sets all inputs to be required
  • id string undefined adds id prefix to all inputs. If id is not defined, id of each input won't be defined either
  • loadingComponent JSX.Element Loader custom loader component
  1. Loader now can be a custom component

  2. Everything is rewritten on TypeScript as a functional component

  3. Tests

  4. Packages are updated

@suweya Apologies for not asking your opinion on TypeScript. The reason is simply a lack of time. My current project is written on TS and had to change some things in the original code. I simply not sure if I have any time to write it on JS. No worries if this PR will be declined.

MikeSha avatar Dec 06 '21 14:12 MikeSha

great pr, unfortunately author of this lib is not active anymore

benmotyka avatar May 23 '23 13:05 benmotyka