Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
  • Data display
  • Typography
  • Accessibility
  • Contrib
    • AccordionNext
    • ClickableCard
    • CollapsibleSection
    • HighlightBox
    • LineBarChart
    • ListItemNext
    • Markdown
    • MultiStepNavigation
    • Number
    • PhoneNumberInput
    • PromoCard
    • RatingWithStars
    • ScreenNext
    • SegmentedControl
    • SortableColumnHeader
    • TabListNext
    • TableHeader
    • Tip
    • UniversalEmoji
  • Deprecated
  • Contrib
  • SegmentedControl

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
Component health
Source
View on Github
Playground
View in 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

NameTypeDefault ValueDescriptionUsage count
aria-labelstringundefined
items*SegmentedControlItemProps[]
sxPositionPropsundefined

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
Edit this page
Previous
ScreenNext
Next
SortableColumnHeader