react-input-password
v1.0.21
Published
React Input Password with some cool features.
Downloads
33
Maintainers
Readme
Input Password
Baisc React.js input password with cool features.
How To Use
- Install with
npm install react-input-password --save
. - Import to your "js" file:
import Input from 'react-input-password';
. - In your code, use like that:
<Input onChange={this.test}/>
. - See
example/basic.js
as reference.
Features
- Hide/Show password
Todo
- Password strength (Base on js regex).
- Mobile-Like-View - Show only the last letter similar to how mobile password input behave.
- In IE10+ input password we should disable the native browser icon since both features are the same but here we gain cross browser similar behaviour & look and feel.
Bugs
- When "revealActive" set to false - there is still padding at the end of the input.
Screenshot
Basic:
How to Contribute
- Fork the project (top right button, in github UI).
- Clone the forked repository to your machine.
- Run
npm install
. - Run
npm start
(or betternpm run demon
in case you havenodemon
, otherwise runnpm install nodemon -g
). - Create a new branch.
- Go to
http://localhost:3334/
. - Write your code, commit and push to your own forked repository in the new branch.
- Open a PR and wait for someone to review and merge to master.