Baisc React.js input password with cool features.
- 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.
- Hide/Show password
- 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.
- When "revealActive" set to false - there is still padding at the end of the input.
Basic:
- 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.