InputChip

fun InputChip(modifier: Modifier = Modifier, label: String, selected: Boolean = false, withTrailingIcon: Boolean = false, enabled: Boolean = true, onSelected: (Boolean) -> Unit? = null, onIconSelected: () -> Unit? = null, badge: String? = null, hasTransparentBackground: Boolean = false, focusRequester: FocusRequester? = null)

DHIS2 Input Chip. Wraps material 3 · InputChip.

Parameters

label

: controls the text to be shown for the title.

selected

: whether the chip is selected or not.

withTrailingIcon

: whether a trailing icon is displayed or not.

enabled

: Controls the enabled state of the button. When false, this button will not be

  • clickable and will appear disabled to accessibility services.

onSelected

: callback to chip selected event.

onIconSelected

: callback for delete icon tap.

badge

: the text to be shown within the badge

hasTransparentBackground

: whether the background is transparent or not.

focusRequester

: component focus requester.

modifier

: optional modifier.