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
| Prop | Values |
|---|---|
size | sm · md · lg |
Controlled and uncontrolled
Pass the value prop to control it, or the default prop to let the component own it.
| Value | Default | Change |
|---|---|---|
value | defaultValue | onValueChange |
States
hover · active · disabled
Support
| Feature | Status |
|---|---|
| Right-to-left | Not applicable |
| Dark mode | Supported |
| Density | Not supported |
| Server rendering | Client component |
| Reduced motion | Supported |
Accessibility
Follows the WAI-ARIA radio-group pattern. Not yet audited.
Keyboard
Tab Space ArrowLeft ArrowRightFocus
One Tab stop for the group; arrow keys move between items (roving tab stop).
Tests
Covered by unit, accessibility (axe), interaction and visual tests.