API reference

RadioButton Composable

Displays one option in a mutually exclusive selection group.

Signature

@Composable
fun RadioButton(
    selected: Boolean,
    onClick: () -> Unit?,
    modifier: Modifier = Modifier,
    contentDescription: String? = null,
    enabled: Boolean = true,
    colors: RadioButtonColors = RadioButtonDefaults.Colors,
    dimensions: ControlDimensions = UiSetTheme.dimensions.controls,
    indication: UiSetIndicationSpec? = UiSetTheme.indications.standard.default,
)

Parameters

selected: Boolean whether this option is the current selection
onClick: (() -> Unit)? selection callback, or null when a parent row owns the interaction semantics
modifier: Modifier modifier applied to the 48dp interaction target
contentDescription: String? accessibility label when no external label describes the control
enabled: Boolean whether the option accepts input
colors: RadioButtonColors colors for selected, unselected, and disabled states
dimensions: ControlDimensions visual size, selection dot, and border values
indication: UiSetIndicationSpec? interaction feedback split around the circular clipping boundary