Vertical
Two-row segmented control for 4–8 segments.
Segments are distributed across two rows, segments are indexed sequentially across both rows, so index 0 is the first segment in row 0 and index ceil(n/2) is the first segment in row 1.
Parameters
Zero-based index of the currently selected segment across both rows. Must be in 0 until segmentCount; throws IllegalArgumentException otherwise.
Modifier applied to the outermost Column that wraps the optional header and the control track.
The Role used for the segments. Defaults to Role.RadioButton to represent single selection but if you use the SegmentedControl to completely change the layout use bellow it then use Role.Tab
When false all segments ignore input and their ripple is suppressed.
Shape applied to each segment's touch target and to the animated indicator. Defaults to SegmentedControlShape.Rounded. Use SegmentedControlShape.Pill for a fully rounded look.
Composable that draws the selection indicator. Receives the current selectedIndex so callers can vary the appearance per selection — useful for value scales such as energy ratings. Defaults to SegmentedControlDefaults.Indicator using shape.
Segment declarations using SegmentedControlScope. Every call to a scope function adds one segment; call them in display order. Requires 4–8 calls.