Navigation
Segmented Control
Presents a clearable single-selection mode using native ToggleGroup keyboard behavior.
idle
Usage
Anatomy
The parts and how they nest, taken from the preview above.
Examples
Project views
Choose how to browse the workspace.
Report settings
Sizes, icons, and orientation
Compact labels and icons stay aligned at every size. Disabled choices retain their selection and skip activation.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Use short labels for a small set of peer choices. Keep the selected value visible. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Use Tabs for switching panels and Radio Group for a longer form question. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | Uses the ToggleGroup array contract. Single selection permits one item or an empty array; clicking the selected item clears it. |
| | — | Receives the selected value array and cancellable Base UI details. |
| | "default" | Sets compact segment heights with a four-pixel surface inset. |
| | "horizontal" | Preserves ToggleGroup keyboard and layout orientation. |
| | — | Supplies the value, label, and optional disabled state. Text and icons align independently. |