SplitSelectableChipColors

interface SplitSelectableChipColors


Represents the background and content colors used in SplitSelectableChips in different states.

Summary

Public functions

State<Color>

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

State<Color>

Represents the content color for this chip, depending on whether it is enabled

State<Color>

Represents the secondary content color for this chip, depending on whether it is enabled

State<Color>

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

State<Color>

Represents the overlay to apply to a split background SplitSelectableChip to distinguish between the two tappable areas.

Public functions

backgroundColor

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

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

Parameters
enabled: Boolean

Whether the chip is enabled

contentColor

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

Represents the content color for this chip, depending on whether it is enabled

Parameters
enabled: Boolean

Whether the chip is enabled

secondaryContentColor

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

Represents the secondary content color for this chip, depending on whether it is enabled

Parameters
enabled: Boolean

Whether the chip is enabled

selectionControlColor

Added in 1.4.0
@Composable
fun selectionControlColor(enabled: Boolean, selected: Boolean): State<Color>

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

Parameters
enabled: Boolean

Whether the chip is enabled

selected: Boolean

Whether the chip is currently selected or unselected

splitBackgroundOverlay

Added in 1.4.0
@Composable
fun splitBackgroundOverlay(enabled: Boolean, selected: Boolean): State<Color>

Represents the overlay to apply to a split background SplitSelectableChip to distinguish between the two tappable areas. The overlay will be applied to "lighten" the background of area under the selection control, depending on the enabled and selected properties.

Parameters
enabled: Boolean

Whether the chip is enabled

selected: Boolean

Whether the chip is currently selected or unselected