Skip to main content
  1. Docs
  2. Components
  3. Forms

Password input

A password or a secret, with Show password. Paste always works, and there's no length cap.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.4
Renders
<input type="password">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Keyboard

KeysWhat happens
TabTabTo the input, then to Show password.

02

Behaviour

Show password
A toggle with aria-pressed; showing and hiding is announced.
Caps Lock
"Caps Lock is on" shows in the box while it is, with an arrow, not by colour.
Hides on submit
It hides again as its form submits, so the browser never stores it as text.
Paste and managers
Paste always works; there's no length cap.

03

Tested

On every change, before it ships.

  • axe, WCAG 2.2 A and AA, in Chromium on every pull request
  • Firefox and WebKit every night
  • Forced colours, reduced motion and right to left
  • Every field shares one height and edge: a test checks them together
Next — Password inputChangelog