SegmentedControl
One row of options with exactly one selected. Use to switch between options inside a form or a page. To swap the whole content or view, use `Tabs`.
Health
Source
Playground
Accessibility
unknown
Platform
Web
Contrib Component
SegmentedControl is a community contributed component. We encourage its usage but it might not give the same level of robustness (accessibility, tests, ...) than core Murray components.- Overview
- Props
Loading...
SegmentedControl props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| aria-label | stringundefined | |||
| items* | SegmentedControlItemProps[] | |||
| sx | PositionPropsundefined |
Style API
Use sx for one-off adjustments. It accepts these style keys:
alignSelfanimationaspectRatiobottomcursordisplayendflexflexBasisflexGrowflexShrinkheightinsetinsetInlineinsetInlineEndinsetInlineStartleftmarginmarginBottommarginHorizontalmarginInlinemarginInlineEndmarginInlineStartmarginLeftmarginRightmarginTopmarginVerticalmatrixmaxHeightmaxWidthminHeightminWidthopacityperspectivepositionrightrotaterotateXrotateYrotateZscalescaleXscaleYskewXskewYstarttoptransformtransformOriginwidthxyzIndex
Each can be overridden per breakpoint with:
$lg$ltLg$ltMd$ltSm$ltVs$ltXl$ltXxl$md$sm$vs$xl$xs$xxl