Skip to content

abhijeetNmishra/react-password-strength-meter

Repository files navigation

React Component to display password strength meter with message and warning

Dependencies

This Component is built using Dropbox zxcvbn password strength estimator library

Installation & Usage

npm install react-password-strength-meter --save

Password Strength Meter and values

This component will 'strength' meter as prop value (type: object).

strength default value :
strength : {
  0: "Worst ☹",
  1: "Bad ☹",
  2: "Weak ☹",
  3: "Good ☺",
  4: "Strong ☻"
}

Include the Component

var React = require('react');
var PasswordStrengthMeter = require('react-password-strength-meter');

class Component extends React.Component {
  constructor(props){
    super(props);
    this.onChange = this.onChange.bind(this);
  }

  onChange(event){

  }

  render() {
    return <PasswordStrengthMeter passwordText={"Enter Password"} onChange={this.onChange} />;
  }
}

License

React Password Strength Meter is released under the MIT license. See LICENSE for details.

About

React Component to display password strength meter - Demo at :

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published