SegmentedControl
fun SegmentedControl(options: List<String>, selectedIndex: Int, onOptionSelected: (Int) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, density: SegmentDensity = SegmentDensity.REGULAR, widthMode: SegmentWidthMode = SegmentWidthMode.FILL)
A row of pill-shaped segments for choosing one of options, drawn as filled buttons: the selected segment uses the primary color and the others the surface variant. Segments report their selected state and form one selectable group for screen readers.
Use ThemeSingleChoiceSegmentedButtonRow for Material's connected, outlined style instead.