ChipColors
Interface
Android
public interface ChipColors
Represents the background and content colors used in a chip in different states.
See ChipDefaults.primaryChipColors
for the default colors used in a primary styled Chip
. See
ChipDefaults.secondaryChipColors
for the default colors used in a secondary styled Chip
.
Functions
@Composable public fun background(enabled: Boolean): State<Painter>
Represents the background treatment for this chip, depending on enabled
. Backgrounds can be
solid, transparent or have a gradient applied.
Parameters
enabled | Whether the chip is enabled |
@Composable public fun contentColor(enabled: Boolean): State<Color>
Represents the content color for this chip, depending on enabled
.
Parameters
enabled | Whether the chip is enabled |
@Composable public fun secondaryContentColor(enabled: Boolean): State<Color>
Represents the secondary content color for this chip, depending on enabled
.
Parameters
enabled | Whether the chip is enabled |
@Composable public fun iconColor(enabled: Boolean): State<Color>
Represents the icon color for this chip, depending on enabled
.
Parameters
enabled | Whether the chip is enabled |