On this page:

Password Input

Note

An input field for entering sensitive strings such as passwords with masked visibility.

password-input

Design checklist

StatusItemDescription
✔️AnatomyIncludes descriptions of all parts of the component and its major variants.
StatesIncludes all applicable interaction, display and value states.
✔️OptionsIncludes all relevant options (functional type, stylistic kind, semantic color, size, orientation, optional iconography, decorations, etc.)
✔️Color schemesIncludes both light and dark color schemes.
BehaviorsIncludes descriptions of behaviors related to other components and responsive behaviors related to media breakpoints, size (minimums and maximums), orientation, alignment, position and layout (wrapping, truncation, overflow).
Accessibility: Keyboard interactionsIncludes descriptions of all keyboard interactions, focus indication and navigation order.
Accessibility: Text contrastText meets a contrast ratio of at least 4.5:1 for small text and 3:1 for large text (WCAG 2.0 1.4.3) and/or a lightness contrast value of at least Lc 75 for standard text and Lc 60 for large text (APCA).
Accessibility: UI component contrastVisual information required to identify states and boundaries of active UI components has a contrast ratio against adjacent colors of at least 3:1 (WCAG 2.1 1.4.11) and/or a lightness contrast value of at least Lc 60 (APCA).
Usage guidelinesIncludes a list of recommended and discouraged usages.
Content guidelinesIncludes content standards and guidelines for how to write or format in-product content for the component.
InternationalizationIncludes support for various locales and bi-directionality (RTL).
Design tokensAll design attributes (color, typography, layout, animation, etc.) are available as design tokens.

Anatomy

Default

anatomy

Floating label

anatomy2

States

Field

Interaction states

Enabled
enabled
enabled2
Hovered
hovered
hovered2
Focused
focused
focused2
Read-only
readonly
readonly2
Disabled

Value states

Empty
empty
empty2
Filled
filled
filled2
Invalid
invalid
invalid2

Display states

Plaintext
plaintext
plaintext2
Masked
masked
masked2

Password visibility button

passwordVisibilityButton
passwordVisibilityButton2

Clear button

This sub-component has the same states as [[Button]].

clearButton
clearButton2

Options

Layering
layerDefault
alternative
Size
small
medium
Floating label
floatingLabel
Placeholder
placeholder
Toggle visibility button
toggleVisibilityButton
toggleVisibilityButton2
Clear button
clearButtonOption
Icon
icon