AssistChip

fun AssistChip(modifier: Modifier = Modifier, label: String, icon: @Composable () -> Unit? = null, enabled: Boolean = true, onClick: () -> Unit, badge: String? = null)

DHIS2 AssistChip button with custom icon slot. wraps Material 3 AssistChip. AssistChips are used to trigger actions.

Parameters

label

: the text to be shown.

icon

: custom leading icon to be shown, use AssistChipDefaults in the Icon composable modifier to set the size of the icon.

enabled

: controls the enabled state. "False" will disabled the component

modifier

: optional Modifier.

onClick

: Will be called when the user taps the chip.

badge

: the text to be displayed within the badge.