Qeetrix

Listbox

Standalone listbox primitive (APG Listbox) — single or multi-select with roving `aria-activedescendant`.

Usage

Import

import { Listbox } from "@qeetrix/ui";

It can also be imported on its own from @qeetrix/ui/components/listbox.

Controlled and uncontrolled

Pass the value prop to control it, or the default prop to let the component own it.

ValueDefaultChange
valuedefaultValueonValueChange

States

hover · focus-visible · active · disabled · read-only · invalid · selected

Support

FeatureStatus
Right-to-leftSupported
Dark modeSupported
DensitySupported
Server renderingClient component
Reduced motionSupported

Accessibility

Follows the WAI-ARIA listbox pattern. Audited.

CheckResult
SemanticsPass
Accessible namePass
KeyboardPass
FocusPass
Screen readerPass
Right-to-leftNot applicable
Reduced motionPass
Forced coloursPass
ContrastPass

Keyboard

Tab ArrowUp ArrowDown Home End Enter TypeAhead

Focus

Focus stays on the input; arrow keys move the active option (aria-activedescendant).

Tests

Covered by unit, accessibility (axe), interaction and visual tests.