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

Checkbox

Yes or no, or several of a list. It waits for the form's Save; the whole row is the target.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<span role="checkbox">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Keyboard

KeysWhat happens
SpaceChecks it, or clears it.
TabTabMoves to each checkbox in turn.

02

Behaviour

Role and name
role="checkbox" with aria-checked, mixed while indeterminate; named by its label.
Group
role="group", with the group's label as its legend; its error is linked to it.
Target
The whole row toggles it, at least 24px tall.
Forced colours
A checked box draws in Highlight.

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 — CheckboxChangelog