Segmented
Segmented control for switching between a set of predefined options.
Default
Basic three-option segmented control for time period selection.
Task Filter
Filter tasks by completion status with a segmented toggle.
View Mode
Switch between different layout modes for content display.
Size Selection
Four-option control for selecting a product size or scale.
Chart Period
Period selector for analytics dashboards and chart views.
In Card Context
Segmented control inside a card for settings or preference panels.
Notification Preferences
Choose which notifications you want to receive.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
options | text | "" | Comma-separated list of option labels |
size | text | "md" | Size: sm, md, lg |