react-password-mask
react-password-mask copied to clipboard
Initial Hide/Show button props
It would be very helpful if I could define through a boolean props the initial state of the show/hide button. (hidden by default)
Thanks!
It's only a matter of setting the "passwordShown" initial state from a prop instead of hardcoding to false:
https://github.com/zakangelle/react-password-mask/blob/8b338ac5aecdb457993cd0c1f842195fd0185e00/src/index.js#L49-L52
I'd be willing to work on that if you think it's a good idea. Cheers!
Maybe you can fork this repo and try to add those feature you have in mind, and create a PR for it.