Components
← All components

Password Reveal

stimeo--password-reveal

Toggles a password field between masked and visible, preserving focus.

The stimeo--password-reveal controller switches the input's type between password and text, keeping the toggle button's aria-pressed and the data-state in sync. The accessible name stays state-independent (Show password) while aria-pressed conveys the state. When the input itself was focused its focus and caret are restored across the type change; when the toggle button holds focus it is left alone. An optional autoHide re-masks after a delay. Behavior only — icon rendering is owned by this Playground.

running

Keyboard

KeyAction
Enter / Space Toggle masked / visible (native button).