Password Field
A masked password input with a show/hide toggle. The field is `type="password"` by default; the toggle button (an `aria-pressed` toggle) reveals it as `type="text"` and back — letting people check what they typed without losing the masking by default.
- Axe
- Focus
Preview
Installation
npx shadcn@latest add https://ui.publictheta.com/r/password-field.jsonConformance
Verified against the @publictheta/ui-spec password-field specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.
- Axe — No WCAG 2 A/AA axe-core violations
- Focus — A visible focus indicator appears on keyboard focus (WCAG 2.4.7)
See the full conformance matrix across all components.