RadioButton

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.

onClick

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
enabled

Whether the RadioButton is enabled.