A password field with an accessible reveal toggle and stable layout.
PasswordInput defines how EnterUI handles a password field with an accessible reveal toggle and stable layout, including default structure, accessible states, and token-driven styling.
The reveal control does not shift the input width.
<div className="docs-preview-stack">
<PasswordInput aria-label="Password" placeholder="Password" />
<PasswordInput aria-label="Invalid password" invalid defaultValue="short" />
</div>import { PasswordInput } from "@froggdesign/enter-ui-react";The reveal button exposes aria-pressed and switches between the reveal and hide labels. Use a visible Label or aria-label for the input.
invalid maps to invalid styling and aria-invalid.revealLabel and hideLabel customize the toggle names.className.Uses the same input visual language as Input with a scoped .eui-password-input wrapper.