Input Chip
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.
with Trailing Icon
: 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.
on Selected
: callback to chip selected event.
on Icon Selected
: callback for delete icon tap.
badge
: the text to be shown within the badge
has Transparent Background
: whether the background is transparent or not.
focus Requester
: component focus requester.
modifier
: optional modifier.