PasswordInput
TextInput with a built-in show/hide toggle. Carbon spec.
primitives-passwordinput--defaultOpen all variants →
When to use
- Any password / passphrase / secret-token field.
- The toggle is on by default — users who need it can reveal their typing.
When not to use
- Non-secret single-line input → use `TextInput`.
- API-key fields where revealing is destructive (e.g. masked-after-creation) — use `TextInput` and a separate copy affordance.