ChipColors


Represents the background and content colors used in a clickable chip in different states.

See ChipDefaults.chipColors for the default colors used in a filled Chip. See ChipDefaults.outlinedChipColors for the default colors used in a outlined Chip,

Summary

Public functions

State<Color>

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

Cmn
State<Color>

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

Cmn
State<Color>

Represents the leading icon's content color for this chip, depending on enabled.

Cmn

Public functions

backgroundColor

@Composable
fun backgroundColor(enabled: Boolean): State<Color>

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

Parameters
enabled: Boolean

whether the chip is enabled

contentColor

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

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

Parameters
enabled: Boolean

whether the chip is enabled

leadingIconContentColor

@Composable
fun leadingIconContentColor(enabled: Boolean): State<Color>

Represents the leading icon's content color for this chip, depending on enabled.

Parameters
enabled: Boolean

whether the chip is enabled