Skip to content
Confirm match, light
Light
Confirm match, dark
Dark

Every state

  • Confirm match, default, light
    Confirm match, default, dark

    default

  • Confirm match, focus, light
    Confirm match, focus, dark

    focus

  • Confirm match, typing, light
    Confirm match, typing, dark

    typing

  • Confirm match, match, light
    Confirm match, match, dark

    match

  • Confirm match, mismatch, light
    Confirm match, mismatch, dark

    mismatch

  • Confirm match, disabled, light
    Confirm match, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"new-password"Id of the new-password input; the confirm input gets `${id}-confirm`.
namestring"password"Form name of the new password.
confirmNamestring"passwordConfirm"Form name of the confirmation.
labelstring"New password"Label of the first field.
confirmLabelstring"Confirm new password"Label of the second field.
descriptionstring"At least 8 characters."Help text under the first field.
defaultPasswordstring–Starting value of the first field.
defaultConfirmstring–Starting value of the second field.
touchedboolean–Treat the second field as already left, so a short mismatch shows at once.
mismatchErrorstring"The passwords don't match. Check for a typo."Error on the second field when the two differ.
matchTextstring"Passwords match."Quiet line when they match.
disabledboolean–Disables both fields.
classNamestring–Extra classes on the wrapper.

More password fields

All 4
password-01 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