CheckBox

fun CheckBox(checkBoxData: CheckBoxData, modifier: Modifier = Modifier, onCheckedChange: (Boolean) -> Unit)

DHIS2 check box with or without text. Wraps Material 3 Checkbox.

Parameters

checkBoxData

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

onCheckedChange

: notify the selection change in the item.

modifier

: optional modifier.