Skip to main content

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​

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,
)
NameTypeDefault
buttonsList<CamoGroupButton>required
modifierModifierModifier
connectedBooleantrue
appearanceAppearance?null
toneToneTone.Default
enabledBooleantrue
contentDescriptionString?null
Design notes

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