Components
Components
PasswordField
Password input with an accessible show and hide toggle.
newfree
Install
@hewnui/ui · hewnui
Built on React Aria TextField with a Group and reveal button. Defaults to masked input; the toggle swaps to plain text without leaving the field chrome.
Use at least 12 characters.
Passwords do not match.
Usage
Variants
outline (default), filled, flushed, and glass.
States
- Description helper text
- Invalid +
errorMessage - Disabled
defaultVisiblestarts revealed
Accessibility
- Toggle button has show/hide accessible names
- Hit target is at least 40×40px
- Label and error association from React Aria
API reference
Props for PasswordField from @hewnui/ui/password-field. Generated from component types — not hand-written.
Prop
Type