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

Text field

A labelled text input: the default form row. A label always; a placeholder is only an example.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<input>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Keyboard

KeysWhat happens
TabTabMoves focus to the input; ⓘ help is its own stop after the label.

02

Behaviour

Label
A <label> for the input: clicking it focuses the input, and it's the input's name.
Optional
"(optional)" is part of the name, so it's read with it.
Description and error
Linked by aria-describedby; the error replaces the description for screen readers too.
Invalid
aria-invalid while an error shows; the edge turns danger, not by colour alone.
Disabled and read-only
Disabled dims label and description; read-only keeps it readable and focusable.

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 — Text fieldChangelog