FilterChip

fun FilterChip(modifier: Modifier = Modifier, label: String, selected: Boolean = false, onSelected: (Boolean) -> Unit? = null, badge: String? = null)

DHIS2 FilterChip button with generic icon slot. wraps Material 3 FilterChip. Chips help people enter information, make selections, filter content, or trigger actions.

Parameters

label

: the text to be shown.

selected

: whether the chip is selected or not.

modifier

: optional Modifier.

onSelected

: Will be called when the user taps the chip.

badge

: the text to be displayed within the badge.