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.

Summary

Public functions

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

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

Cmn
State<Color>
@Composable
contentColor(enabled: Boolean, selected: Boolean)

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

Cmn
State<Color>
@Composable
leadingIconColor(enabled: Boolean, selected: Boolean)

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

Cmn

Public functions

backgroundColor

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

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

Parameters
enabled: Boolean

whether the chip is enabled

selected: Boolean

whether the chip is selected

contentColor

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

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

Parameters
enabled: Boolean

whether the chip is enabled

selected: Boolean

whether the chip is selected

leadingIconColor

@Composable
fun leadingIconColor(enabled: Boolean, selected: Boolean): State<Color>

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

Parameters
enabled: Boolean

whether the chip is enabled

selected: Boolean

whether the chip is selected