Zazz Design Framework
Components

Password group

A password input with a built-in show/hide visibility toggle.

The .password-group is an input group whose trailing addon is a ghost button that toggles the field's visibility. Wrap it in <input-password> to add the show/hide behavior while keeping the field usable as a normal masked password input when JavaScript is unavailable.

The toggle button keeps aria-pressed and aria-label in sync, and the icon swap is driven by CSS from that pressed state. The preview loads the required script automatically; open the JS tab to inspect the custom element.

Default

Loading components…

API

AttributeWherePurpose
<input-password>wrapperFinds the password input and toggle button
.password-grouplabelField surface and addon layout
.password-group__togglebuttonButton that flips the input between password/text
label-show<input-password>Optional accessible label while the password is hidden
label-hide<input-password>Optional accessible label while the password is visible

On this page