RadioButton
Radio buttons allow users to select one option from a set.
Parameters
whether this radio button is selected or not
called when this radio button is clicked. If null
, then this radio button will not be interactable, unless something else handles its input events and updates its state.
the Modifier to be applied to this radio button
controls the enabled state of this radio button. When false
, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.
RadioButtonColors that will be used to resolve the color used for this radio button in different states. See RadioButtonDefaults.colors.
an optional hoisted MutableInteractionSource for observing and emitting Interactions for this radio button. You can use this to change the radio button's appearance or preview the radio button in different states. Note that if null
is provided, interactions will still happen internally.