EnterUI
DocsComponentsThemesExamplesDonation
Get Started
      • Input
      • InputGroup
      • PhoneInput
      • PasswordInput
      • NumberInput
      • Stepper
      • TextArea

Default usage

  1. EnterUI
  2. /Docs
  3. /Inputs
  4. /Form Controls
  5. /Text Inputs
  6. /PasswordInput
Updated 3 October 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
<VStack align="stretch" gap={12} fullWidth>
  <PasswordInput aria-label="Password" placeholder="Password" />
  <PasswordInput aria-label="Invalid password" invalid defaultValue="short" />
</VStack>

#Import

Code
import { PasswordInput, VStack } 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.

PreviousPhoneInput
NextNumberInput
On this page
  • Default usage
  • Import
  • Accessibility
  • API
  • Styling