Radio Button
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.
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.