Skip to main content

CamoSegmentedControl

A compact choice between 2 to 5 related options ("Day / Week / Month"), each segment the same width. It's a radio group: one Tab stop, the arrow keys move and select, and segments are announced "Week, 2 of 3". For several selections, use filter chips.

API​

public fun <T> CamoSegmentedControl(
options: List<Segment<T>>,
selected: T,
onSelectionChange: (T) -> Unit,
modifier: Modifier = Modifier,
enabled: Boolean = true,
)
NameTypeDefault
optionsList<Segment<T>>required
selectedTrequired
onSelectionChange(T) -> Unitrequired
modifierModifierModifier
enabledBooleantrue
Design notes

Why CamoSegmentedControl works this way, its states and its edge cases: contributor docs.