Android components Forms
StanceRadioGroup
BetaA labelled set of mutually exclusive options with optional descriptions.
- PlatformAndroid, Jetpack Compose
- Builds on
RadioButton - Kindcomposable
Preview
Rendered by the Jetpack Compose library, not drawn by hand.






Usage
var role by remember { mutableStateOf("editor") }
StanceRadioGroup(
label = "Role",
options = listOf(StanceRadioOption("viewer", "Viewer"), StanceRadioOption("editor", "Editor", "Can change templates")),
selected = role,
onSelect = { role = it },
)Accessibility
- Touch target is at least 48dp.
- Announced as a group, with each option as a radio button.