Skip to content
Strength meter, light
Light
Strength meter, dark
Dark

Every state

  • Strength meter, default, light
    Strength meter, default, dark

    default

  • Strength meter, focus, light
    Strength meter, focus, dark

    focus

  • Strength meter, too-weak, light
    Strength meter, too-weak, dark

    too-weak

  • Strength meter, weak, light
    Strength meter, weak, dark

    weak

  • Strength meter, good, light
    Strength meter, good, dark

    good

  • Strength meter, strong, light
    Strength meter, strong, dark

    strong

  • Strength meter, error, light
    Strength meter, error, dark

    error

  • Strength meter, disabled, light
    Strength meter, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"new-password"Input id; the label, verdict and error point at it.
namestring"password"Form field name.
labelstring"New password"Visible label.
hintstring"Use 12 or more characters. A few random words work well."Line under the meter before anything is typed.
defaultValuestring–Starting value.
score(password: string) => { score: 0 | 1 | 2 | 3 | 4; tip?: string }scorePasswordScores locally; the default weighs length, kinds of characters, common words and runs.
verdicts[string, string, string, string]["Too weak", "Weak", "Good", "Strong"]The four verdicts, weakest first; read out politely when the level changes.
requiredboolean–Marks the field required.
disabledboolean–Disables the field.
errorstring–Error message; makes the field invalid and links the message to it.
classNamestring–Extra classes on the outer Field.

More password fields

All 4
password-04 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans