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

Radio

One answer from a few, all in view and always answered. The group is one Tab stop.

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

01

Keyboard

KeysWhat happens
TabTabMoves into the group, to the chosen option; Tab again leaves it.
↑↓←→Moves to the next option and chooses it; mirrored in right to left.

02

Behaviour

Role and name
role="radiogroup" named by its label; each option role="radio" with aria-checked.
One Tab stop
The group is one stop; the arrow keys move inside it.
Error
Linked to the group, and listed by a Form's error summary.
Right to left
The arrow keys follow the reading direction; tested in RTL.

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