PasswordInput.
Accessible password visibility toggle.
The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.
Props & API reference
Parameters available in the shared component, including value types, requirements and accepted options.
| Parameter | Type | Required | Default | Possible values | Description |
|---|---|---|---|---|---|
value | string | No | — | — | Controlled password value. |
defaultValue | string | No | — | — | Initial password field value. |
placeholder | string | No | — | — | Hint when empty. |
disabled | boolean | No | false | true · false | Disable input. |
onChange | ChangeEventHandler<HTMLInputElement> | No | — | — | Called on password edits. |
aria-label | string | No | — | — | Accessible password field label. |
className | string | No | — | — | Additional CSS class on the outer component element. |