Interface

ChipColors

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

Source set: Common
public interface 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,

Functions

backgroundColor

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

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

Parameters

enabled whether the chip is enabled

contentColor

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

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

Parameters

enabled whether the chip is enabled

leadingIconContentColor

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

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

Parameters

enabled whether the chip is enabled
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: