react-verification-code-input
react-verification-code-input copied to clipboard
Move to TS. Add some new props. Rewrite as a functional component
- Adds new props on updates existing
- values
string | string[]default values - placeholder
string | string[][]input placeholder. Ifstring, the one placeholder will be added to all inputs - inputClassNames
string | string[][]input classnames. Ifstring, the one class will be added to all inputs - disabled
booleanfalsedisables all inputs - required
booleanfalsesets all inputs to be required - id
stringundefinedadds id prefix to all inputs. Ifidis not defined, id of each input won't be defined either - loadingComponent
JSX.ElementLoadercustom loader component
-
Loader now can be a custom component
-
Everything is rewritten on TypeScript as a functional component
-
Tests
-
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.
great pr, unfortunately author of this lib is not active anymore