Chip
A Chip component with COUI style.
A capsule shaped, checkable filter tag mirroring ColorOS's COUIChip in its selection style (Widget.COUI.Chip.Choice): the unselected chip is a translucent gray capsule with a primary label; selecting it fills the capsule with the accent color and flips the label to white. The selected/unselected colors cross-fade with the same critically damped spring COUIChipDrawable.TintAnimation uses, and pressing shrinks the chip while tinting the fill (COUIPressFeedbackHelper + COUIMaskEffectDrawable).
Parameters
Whether the Chip is selected.
The callback when the Chip is clicked.
The text label of the Chip. Single line, ellipsized beyond ChipDefaults.TextMaxWidth.
The modifier to be applied to the Chip.
Whether the Chip is enabled.
The optional leading icon of the Chip, laid out in a ChipDefaults.IconSize box. LocalContentColor is provided with the current label color so a default Icon is tinted like COUIChip with chipIconApplyTint enabled.
The corner radius of the Chip. COUIChip uses a capsule (half of the default 32dp height) drawn on the smooth-corner path.
The minimum width of the Chip.
The minimum height of the Chip.
The maximum width of the Chip.
The ChipColors of the Chip.
The horizontal padding inside the Chip.
The MutableInteractionSource to be used for the Chip.
The Indication to be used for the Chip. Defaults to null because the COUI press feedback (scale + press tint) is built into the chip itself.