Segmented Control
A fully accessible, token-driven SegmentedControl component built with strict WAI-ARIA compliance.
tsx
import { SegmentedControl } from '@nofinite/nui';Interactive Preview
Loading preview...
Usage
Basic Example
tsx
import { SegmentedControl } from '@nofinite/nui';
<SegmentedControl />API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
options* | SegmentedControlOption[] | — | — |
value | string | — | — |
defaultValue | string | — | — |
onChange | ((value: string) => void) | — | — |
name | string | — | — |
disabled | boolean | false | — |
size | enum | md | — |
fullWidth | boolean | false | — |
Accessibility & Guidelines
- Semantic Tokens: Built strictly using Nuicss semantic tokens (
bg-surface,text-default,border-subtle,bg-primary). - Keyboard Navigation: Adheres to strict WAI-ARIA standards.
- Screen Reader Support: Includes semantic roles and live regions where appropriate.