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
- Kotlin
- Dart
public fun <T> CamoSegmentedControl(
options: List<Segment<T>>,
selected: T,
onSelectionChange: (T) -> Unit,
modifier: Modifier = Modifier,
enabled: Boolean = true,
)
| Name | Type | Default |
|---|---|---|
options | List<Segment<T>> | required |
selected | T | required |
onSelectionChange | (T) -> Unit | required |
modifier | Modifier | Modifier |
enabled | Boolean | true |
Design notes
Why CamoSegmentedControl works this way, its states and its edge cases: contributor docs.