RadioGroup¶
@Composable
fun <T> RadioGroup(
options: List<RadioOption<T>>,
selected: T?,
onSelected: (T) -> Unit,
modifier: Modifier = Modifier,
optionSpacing: Int = 3
)
A vertical list of labeled, mutually exclusive RadioButtons.
Parameters¶
-
options: The selectable options, in display order.
-
selected: The currently selected value, or
nullif none is selected. -
onSelected: Called with an option's value when it is selected.
-
modifier: Additional modifiers applied to the outer
Column. -
optionSpacing: Vertical spacing between options, in pixels.