Skip to main content
Pricing

Password Input

Pro

A text input with type="password" that masks characters by default. Includes a toggle button to reveal or hide the password. Supports strength indicators and validation messaging for sign-up forms.

8 variants

State
Password
••••••••
Weak

Variants

VariantDescriptionWhen to use
DefaultMasked password input with a show/hide toggle button.Use for login forms and any field requiring a password entry.
With Strength
With Toggle

Usage Guidelines

Do

Include a show/hide toggle so users can verify their input.

Don't

Prevent pasting into password fields — it discourages password managers.

Do

Show password strength feedback on registration forms.

Don't

Limit password length to fewer than 64 characters.

Do

Use aria-describedby to link password requirements to the input.

Don't

Mask the confirmation field when the primary field is revealed.

Do

Set autocomplete="current-password" for login and "new-password" for registration.

Don't

Code

This component is included in Lexicon Pro

From €149 — one-time purchase, lifetime access

View pricing

Design Tokens

This component is included in Lexicon Pro

From €149 — one-time purchase, lifetime access

View pricing

Accessibility

  • Toggle button uses aria-label="Show password" / "Hide password" based on state.
  • Password requirements linked via aria-describedby.
  • Strength indicator uses aria-live="polite" to announce changes.
  • Input uses autocomplete attribute for password manager support.

Keyboard Interactions

TabMoves focus between the input and the toggle button.
Enter/SpaceToggles password visibility when the toggle button is focused.
Any characterTypes the character into the input.