InputSequential

fun InputSequential(    title: String,     data: List<ImageCardData>,     selectedData: ImageCardData? = null,     modifier: Modifier = Modifier,     state: InputShellState,     inputStyle: InputStyle = InputStyle.DataInputStyle(),     supportingText: List<SupportingTextData>? = null,     legendData: LegendData? = null,     isRequired: Boolean = false,     testTag: String = "",     onSelectionChanged: (ImageCardData) -> Unit,     painterFor: Map<String, Painter>? = null)

DHIS2 icon card sequential input component.

Parameters

title

: Label of the component.

data

: List of ImageCardData to show.

selectedData

: Selected ImageCardData, renders selected UI around that item.

modifier

: optional modifier.

inputStyle

: manages the InputShell style.

supportingText

: List of SupportingTextData that manages all the messages to be shown.

legendData

: LegendData to be render below the input shell.

isRequired

: Mark this input as mandatory.

testTag

: optional tag for ui testing purposes.

onSelectionChanged

: Callback to receive new selected item.

painterFor

: mapped array for option icons.