radiogroup

command
v4.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 3 Imported by: 0

README

Accessible Radio Group

An interactive WAI-ARIA radio group with roving tabindex and focus-follows-selection, built by composing existing primitives rather than reimplementing each control.

What it shows

  • role="radiogroup" / role="radio" with aria-checked, the contract assistive tech expects.
  • Roving tabindex via ui.UseCompositeNavigation so the group is a single tab stop and arrow keys move selection.
  • Focus-follows-selection using the ui.UseDOMRef element ref (.Focus()), so the active radio is always the focused one.

Run

gwc dev examples/public/radiogroup

Tab into the group, then use the arrow keys — selection and focus move together.

Documentation

Rendered for js/wasm

Overview

Command radiogroup is the e2e fixture for U5: an interactive WAI-ARIA radio group built by composing ui.UseCompositeNavigation (the existing roving- tabindex engine) with role=radio/aria-checked and the G2 DOM ref for focus-follows-selection — no per-control reimplementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL