Skip to main content
Version: 57.2.0

Segmented control

SegmentedControl may be used to group multiple selections. The controls display the current state and related state. Create layout to convey a clear sense of information hierarchy. When a control is engaged, information below the control should also be updated. Also known as 'Toggle group'.

Package: @terreno/ui
Categories: Component
Props interface: SegmentedControlProps
Story source: demo/stories/Segmentedcontrol.stories.tsx

Live demo

Props

PropTypeRequiredDescription
itemsarrayYes
onChangereflectionYes
badgesarray
maxItemsnumber
selectedIndexnumber
sizeunion
testIDstringRoot test id for the primary interactive element or container.
testIDsSegmentedControlTestIDs