CamoButtonGroup
Related buttons as one control: commands (Cut, Copy, Paste) or independent toggles (Bold, Italic). It is not a
segmented control, which chooses one value. connected buttons share borders and corners; otherwise they keep
a gap. One Tab stop: the arrow keys move between the enabled buttons, wrapping, and Space or Enter presses.
contentDescription names the group. A group never wraps: too many buttons belong in a toolbar.
API
- Kotlin
- Dart
public fun CamoButtonGroup(
buttons: List<CamoGroupButton>,
modifier: Modifier = Modifier,
connected: Boolean = true,
appearance: Appearance? = null,
tone: Tone = Tone.Default,
enabled: Boolean = true,
contentDescription: String? = null,
)
| Name | Type | Default |
|---|---|---|
buttons | List<CamoGroupButton> | required |
modifier | Modifier | Modifier |
connected | Boolean | true |
appearance | Appearance? | null |
tone | Tone | Tone.Default |
enabled | Boolean | true |
contentDescription | String? | null |
Design notes
Why CamoButtonGroup works this way, its states and its edge cases: contributor docs.