InputRadioButton

fun InputRadioButton(title: String, radioButtonData: List<RadioButtonData>, modifier: Modifier = Modifier, orientation: Orientation = VERTICAL, state: InputShellState, inputStyle: InputStyle = InputStyle.DataInputStyle(), supportingText: List<SupportingTextData>? = null, legendData: LegendData? = null, isRequired: Boolean = false, itemSelected: RadioButtonData? = null, onItemChange: (RadioButtonData?) -> Unit)

DHIS2 Input Radio Button. Wraps DHIS · RadioButton.

Parameters

title

: controls the text to be shown for the title

radioButtonData

: a list of RadioButtonData with parameters for options

modifier

: allows a modifier to be passed externally

orientation

: Controls how the radio buttons will be displayed, HORIZONTAL for rows or VERTICAL for columns.

state

: Manages the InputShell state

inputStyle

: manages the InputShell style.

supportingText

: is a list of SupportingTextData that manages all the messages to be shown

legendData

: manages the legendComponent

isRequired

: controls whether the field is mandatory or not

itemSelected

: controls which item is selected.

onItemChange

: is a callback to notify which item has changed into the block.