Components · Forms · Password Strength
Back to Password StrengthPassword StrengthNew
Use for a new-password field that shows strength while the user types, with rules that check off live.
Properties
Size, corner radius and the content options below are properties of the same component, not separate elements - change them to check this component's appearances and states in the Live Preview.
Live Preview
Every appearance side by side, each in every state. One full matrix is rendered per selected Size and Corner radius combination.
When to use
Sign-up and change-password forms.
Component Guide
Overview
Password Strength is a new-password field with a four-segment meter, a strength word and a rules checklist that ticks off as each rule is met. Scoring runs on the device.
When to Use
- Sign-up and change-password forms.
- Password rules that should check off live.
When Not to Use
- Sign-in - use the Password field.
- Unrelated progress - use Progress.
- Breached-password or dictionary checks - those need a server.
Best Practices
- Keep the short length and rules in line with the server policy.
- Confirm anything that matters server-side - the meter is advisory.
- Show rules as a checklist, not only a colour.
Accessibility
- The meter is role=meter with the strength word as its value text.
- Rules are linked to the input with aria-describedby; errors set aria-invalid.
- The reveal button uses aria-pressed.
Related Components
Password, Input, Progress, Number.
{
"component": "Password Strength",
"category": "Forms",
"summary": "Password Strength is a new-password field with a four-segment meter, a strength word and a rules checklist that ticks off as each rule is met. Scoring runs on the device.",
"whenToUse": [
"Sign-up and change-password forms.",
"Password rules that should check off live."
],
"whenNotToUse": [
"Sign-in - use the Password field.",
"Unrelated progress - use Progress.",
"Breached-password or dictionary checks - those need a server."
],
"bestPractices": [
"Keep the short length and rules in line with the server policy.",
"Confirm anything that matters server-side - the meter is advisory.",
"Show rules as a checklist, not only a colour."
],
"accessibility": [
"The meter is role=meter with the strength word as its value text.",
"Rules are linked to the input with aria-describedby; errors set aria-invalid.",
"The reveal button uses aria-pressed."
],
"relatedComponents": [
"Password",
"Input",
"Progress",
"Number"
]
}