RadioButton

fun RadioButton(selected: Boolean, onClick: () -> Unit?, modifier: Modifier = Modifier, colors: RadioButtonColors = RadioButtonDefaults.radioButtonColors(), enabled: Boolean = true)

A RadioButton component with Miuix style.

Displays a checkmark indicator when selected, matching the miuix-classic SingleChoicePreference visual style. When unselected, no indicator is shown.

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.