RadioButton

fun RadioButton(radioButtonData: RadioButtonData, modifier: Modifier = Modifier, onClick: (Boolean) -> Unit)

DHIS2 radio button with or without text. Wraps Material 3 RadioButton.

Parameters

radioButtonData

Contains all data for controlling the inner state of the component. It's parameters are uid for identifying the component, selected for controlling which option is selected, enabled controls if the component is clickable and textInput displaying the option text.

onClick

Will be called when the user clicks the button.