React Component to display password strength meter with message and warning
This Component is built using Dropbox zxcvbn password strength estimator library
npm install react-password-strength-meter --save
This component will 'strength' meter as prop value (type: object).
strength default value :
strength : {
0: "Worst ☹",
1: "Bad ☹",
2: "Weak ☹",
3: "Good ☺",
4: "Strong ☻"
}
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} />;
}
}
React Password Strength Meter is released under the MIT license. See LICENSE for details.