Qeetrix

Segmented Control

Inline single-select control with an animated sliding indicator.

Usage

Import

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

It can also be imported on its own from @qeetrix/ui/components/segmented-control.

Variant props

PropValues
sizesm · md · lg

Controlled and uncontrolled

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

ValueDefaultChange
valuedefaultValueonValueChange

States

hover · active · disabled

Support

FeatureStatus
Right-to-leftNot applicable
Dark modeSupported
DensityNot supported
Server renderingClient component
Reduced motionSupported

Accessibility

Follows the WAI-ARIA radio-group pattern. Not yet audited.

Keyboard

Tab Space ArrowLeft ArrowRight

Focus

One Tab stop for the group; arrow keys move between items (roving tab stop).

Tests

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