Chip
@Composable
Basic chip.
Parameters
label
the content of the ButtonChip, typically a Text. Text color is defined by ChipColors.contentColor.
onClick
called when the chip is clicked.
modifier
Modifier to be applied to the chip.
leadingIcon
Optional icon at the start of the chip, preceding the content text.
trailingIcon
Optional icon at the end of the chip, following the content text.
enabled
When disabled, chip will not respond to user input. It will also appear visually disabled to accessibility services.
colors
the colors for content including label, leadingIcon, trailingIcon and background of chip.
chipSize
the size of chip.
contentPadding
padding for content of this chip.
contentGap
the gap between leadingIcon,label,trailingIcon.
shape
the shape of this chip.
interactionSource
the MutableInteractionSource representing the stream of Interactions for this chip.