Radio Button
fun RadioButton(selected: Boolean, onClick: () -> Unit?, modifier: Modifier = Modifier, colors: RadioButtonColors = RadioButtonDefaults.radioButtonColors(), enabled: Boolean = true)
A RadioButton component with COUI style.
Unselected is an outline ring, selected is a primary disc with a solid center dot; toggling replays the COUI AVD transitions (cross-fade with a 1 -> 1.08 -> 1 pulse).
Parameters
selected
Whether the RadioButton is currently selected.
on Click
The callback to be called when the RadioButton is clicked. The caller is responsible for updating the state. If null, the RadioButton is not interactive.
modifier
The modifier to be applied to the RadioButton.
colors
The RadioButtonColors of the RadioButton.
enabled
Whether the RadioButton is enabled.