🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

SelectableChipColors

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

Source set: Common
public interface SelectableChipColors

Represents the background and content colors used in a selectable chip in different states. FilterChip, choice chip and input chip are types of selectable chips. See ChipDefaults.filterChipColors for the default colors used in a filled FilterChip. See ChipDefaults.outlinedFilterChipColors for the default colors used in a outlined FilterChip.

Functions

backgroundColor

Source set: Common
@Composable public fun backgroundColor(enabled: Boolean, selected: Boolean): State<Color>

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

Parameters

enabled whether the chip is enabled
selected whether the chip is selected

contentColor

Source set: Common
@Composable public fun contentColor(enabled: Boolean, selected: Boolean): State<Color>

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

Parameters

enabled whether the chip is enabled
selected whether the chip is selected

leadingIconColor

Source set: Common
@Composable public fun leadingIconColor(enabled: Boolean, selected: Boolean): State<Color>

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

Parameters

enabled whether the chip is enabled
selected whether the chip is selected