Interface

ChipColors

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

Source set: Android
public interface ChipColors

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

See ChipDefaults.primaryChipColors for the default colors used in a primary styled Chip. See ChipDefaults.secondaryChipColors for the default colors used in a secondary styled Chip.

Functions

background

Source set: Android
@Composable public fun background(enabled: Boolean): State<Painter>

Represents the background treatment for this chip, depending on enabled. Backgrounds can be solid, transparent or have a gradient applied.

Parameters

enabled Whether the chip is enabled

contentColor

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

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

Parameters

enabled Whether the chip is enabled

secondaryContentColor

Source set: Android
@Composable public fun secondaryContentColor(enabled: Boolean): State<Color>

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

Parameters

enabled Whether the chip is enabled

iconColor

Source set: Android
@Composable public fun iconColor(enabled: Boolean): State<Color>

Represents the icon 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: