Components
← All components

Password Strength Meter

stimeo--password-strength

Scores a password with a lightweight heuristic and drives a meter + label.

  • Meter

The stimeo--password-strength controller estimates password strength with a zero-dependency heuristic (length milestones and character-class variety, capped for trivial repetition) and pairs with Password Reveal to round out the sign-up experience. There is no dedicated APG pattern; the meter display follows Meter. On each input it syncs the meter's aria-valuenow, reflects the level token on data-strength and the 0–1 fill on --stimeo-password-strength, and writes the level into a polite aria-live label (debounced so a screen reader is not flooded mid typing). The estimate is intentionally not a dictionary/zxcvbn-grade one; swap a stronger estimator in on the consumer side if needed. Behavior only — the look is owned by this Playground.

running

Type into the field to see the strength update. The estimate is a lightweight heuristic (length and character variety) — not a dictionary check — so treat it as guidance, not a guarantee. The meter value and label update immediately, while the spoken label is debounced to avoid interrupting a screen reader while you type.