EEnterUI
DocsComponentsThemesDonation
Get Started
      • Input
      • PasswordInput
      • NumberInput
      • Stepper
      • TextArea
EnterUIDocsInputsForm ControlsText InputsPasswordInput
InputsUpdated 6 May 2026

PasswordInput

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.

#Default usage

Password field

The reveal control does not shift the input width.

Code
<div className="docs-preview-stack">
  <PasswordInput aria-label="Password" placeholder="Password" />
  <PasswordInput aria-label="Invalid password" invalid defaultValue="short" />
</div>

#Import

Code
import { PasswordInput } from "@froggdesign/enter-ui-react";

#Accessibility

The reveal button exposes aria-pressed and switches between the reveal and hide labels. Use a visible Label or aria-label for the input.

#API

  • invalid maps to invalid styling and aria-invalid.
  • revealLabel and hideLabel customize the toggle names.
  • Supports disabled, readOnly, native input props, and className.

#Styling

Uses the same input visual language as Input with a scoped .eui-password-input wrapper.

PreviousInput
NextNumberInput

On this page

  1. Default usage
  2. Import
  3. Accessibility
  4. API
  5. Styling