PasswordStrength
Display a password strength estimate or a score from an application estimator.
PasswordStrength displays a password strength estimate.
Import
import { PasswordStrength } from "@solarius/onset";Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | The password being typed. |
minLength | number | 8 | What counts as long enough. Match the rule the server enforces. |
strength | PasswordStrengthResult | — | Password strength result supplied by an external estimator or server. |
labels | Partial<Record<PasswordStrengthLevel, ReactNode>> | — | Replace any of the four readouts. |
showLabel | boolean | true | Show the word beside the bar. |
hideWhenEmpty | boolean | true | Render nothing until something has been typed. |