zxqx/react-password-mask

Initial Hide/Show button props

felipesilvati opened this issue · 3 comments

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.