@hawk-ui/password-strength
v4.4.4
Published
hawk-ui: Basic Password Strength Component
Downloads
332
Maintainers
Readme
Installation
To install a component run
$ npm install @hawk-ui/password-strength --save
Please import CSS styles via
@import '/path__to__node_modules/@hawk-ui/password-strength/dist/index.min.css
Usage
Password Strength
import PasswordStrength from '@hawk-ui/password-strength';
initialState = {
password: ''
};
<div>
<input
type="password"
className="hawk-input"
placeholder="Enter a password"
value={state.password}
onChange={(event) => {
setState({ password: event.target.value });
}}
/>
<PasswordStrength
value={state.password}
/>
</div>