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.

Summary

Public functions

State<Painter>

Represents the background treatment for this chip, depending on enabled.

State<Color>

Represents the content color for this chip, depending on enabled.

State<Color>

Represents the icon color for this chip, depending on enabled.

State<Color>

Represents the secondary content color for this chip, depending on enabled.

Public functions

background

Added in 1.0.0
@Composable
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: Boolean

Whether the chip is enabled

contentColor

Added in 1.0.0
@Composable
fun contentColor(enabled: Boolean): State<Color>

Represents the content color for this chip, depending on enabled.

Parameters
enabled: Boolean

Whether the chip is enabled

iconColor

Added in 1.0.0
@Composable
fun iconColor(enabled: Boolean): State<Color>

Represents the icon color for this chip, depending on enabled.

Parameters
enabled: Boolean

Whether the chip is enabled

secondaryContentColor

Added in 1.0.0
@Composable
fun secondaryContentColor(enabled: Boolean): State<Color>

Represents the secondary content color for this chip, depending on enabled.

Parameters
enabled: Boolean

Whether the chip is enabled