Agentic Design System
v3.5.0

Components · Forms · Password

Back to Password types

Password

Owner: Design System Team · Version: v3.5.0

Use for collecting a secret value that should stay hidden while typing, like a password, passphrase, or PIN.

Properties

Size, corner radius, label, placeholder and the reveal toggle are properties of the same component, not separate fields - change them below to check this field's style and states in the Live Preview.

Size
Corner radius
Show reveal toggle
Allow clear
Required
Supporting text

Live Preview

All 3 types compared side by side, each in all 6 states. One full matrix is rendered per selected combination of Size and Corner radius - check more than one option in a dropdown to see every combination side by side.

When to use

Any form field that collects a secret value the user is typing, where the characters should stay hidden by default.

Login Sign up PIN code Change password API key

Validation

Password carries the same validation contract as any required field, plus rules specific to secrets - what counts as a valid value, when to check it, and how to keep autofill and password managers working rather than fighting them.

Component Guide

Overview

Password is a text field that masks its characters by default, with a toggle to reveal the value temporarily - used for any secret the user is actively typing, so it stays hidden from anyone glancing at the screen while still letting the user verify what they typed.

When to Use

  • Login and sign-up forms - collecting an account password.
  • A PIN code or short secret - still worth masking even if numeric.
  • Changing a password or entering an API key - any value that shouldn't be visible by default.

When Not to Use

  • A value that isn't actually secret - use Input - masking non-sensitive data only adds friction.
  • A one-time code delivered separately and meant to be read back to someone - consider whether masking helps or just adds a step; a plain Input or Number field may serve better.
  • Multi-line secret content - Password is single-line only; there's no dedicated masked textarea in this system.

Best Practices

  • Always provide the show/hide toggle - masking with no way to verify what was typed increases error rates and failed submissions.
  • Never restrict paste into a password field; blocking paste actively discourages the use of password managers.
  • Show password strength or requirement feedback near the field, not only after a failed submit.

Do and Don't

Do

At least 12 characters.

States the rule before the user types, and lets them reveal what they entered so a typo is fixable rather than guessable.

Don't

Password does not meet requirements.

Hiding the rule until after submission, with no way to see what was typed, makes the user retry blind against a standard they still have not been told.

Accessibility

  • The show/hide toggle has an accessible name that reflects its current state ("Show password" / "Hide password"), not just an icon.
  • Toggling visibility keeps keyboard focus on the field, so the user isn't forced to re-locate it.
  • The input still exposes autocomplete hints (current-password / new-password) so password managers can assist correctly.

Related Components

Input, Number (for PIN-style numeric-only secrets), Text Area.