1.0.0 • Published 8 years ago
@rodrigowpl/react-password-strength v1.0.0
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-strengthfor yarn users
yarn add @rodrigowpl/react-password-strengthUsage
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 thedistdirectory)
Scripts
yarn build (or npm run build): Build project to productionyarn storybook (or npm run storybook): Run Storybook on6006portyarn storybook:build: Build Storybook to static filesnpm run pub: Publish to npm
License
MIT © Rodrigo Wippel
1.0.0
8 years ago