Chip

fun Chip(text: String, modifier: Modifier = Modifier, enabled: Boolean = true, icon: Drawable? = null, @ColorInt iconTint: Int? = null, onClick: () -> Unit? = null)

Creates a new Chip view.

Author

Arnau Mora (ArnyminerZ)

Since

20211230

Parameters

text

The text of the chip.

modifier

Modifiers to apply to the view.

enabled

Whether or not the chip should be displayed as enabled.

onClick

A callback for when the chip is clicked.