InputYesOnlySwitch

fun InputYesOnlySwitch(title: String, modifier: Modifier = Modifier, state: InputShellState, inputStyle: InputStyle = InputStyle.DataInputStyle(), supportingText: List<SupportingTextData>? = null, legendData: LegendData? = null, isRequired: Boolean = false, isChecked: Boolean, onClick: (Boolean) -> Unit)

DHIS2 Input Yes Only Switch. Wraps DHIS · InputShell.

Parameters

title

: the label to be displayed.

modifier

: allows a modifier to be passed externally.

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.

isChecked

: whether the switch is selected or not.

onClick

: will be called when the user taps the radio button.