@rodrigowpl/react-password-strength
v1.0.0
Published
React component based on dropbox algorithm for Password Strength Estimation
Downloads
7
Readme
react-password-strength
React component with zxcvbn
You can see running example: https://rodrigowp.github.io/react-password-strength/
Installation
for npm users
npm i --save @rodrigowpl/react-password-strength
for yarn users
yarn add @rodrigowpl/react-password-strength
Usage
import ReactPasswordStrength from '@rodrigowpl/react-password-strength'
<ReactPasswordStrength
passwordValue='whatever-password'
/>
Props
| Property | Type | Default | Description | |:---|:---|:---|:---| | width | number | 300 | Set width of container element | passwordValue | string | undefined | Value that will be validate
Contributing
Dependencies:
- Node.js
>=
v8;
Up and running
- Install dependencies:
yarn
(ornpm i
); - Run
yarn start
(ornpm run start
) to develop onhttp://localhost:3000
- Run
yarn build
(ornpm run build
) for production build (files will be generated in thedist
directory)
Scripts
yarn build (or npm run build)
: Build project to productionyarn storybook (or npm run storybook)
: Run Storybook on6006
portyarn storybook:build
: Build Storybook to static filesnpm run pub
: Publish to npm
License
MIT © Rodrigo Wippel