# ChipColors

Artifact: [androidx.wear.compose:compose-material](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material/Chip.kt+class:androidx.wear.compose.material.ChipColors) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0)

<br />

```
interface ChipColors
```

<br />

*** ** * ** ***

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

See `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipDefaults#primaryChipColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)` for the default colors used in a primary styled `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/Chip.composable#Chip(kotlin.Function0,androidx.wear.compose.material.ChipColors,androidx.wear.compose.material.ChipBorder,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.foundation.layout.PaddingValues,androidx.compose.ui.graphics.Shape,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.ui.semantics.Role,kotlin.Function1)`. See `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipDefaults#secondaryChipColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)` for the default colors used in a secondary styled `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/Chip.composable#Chip(kotlin.Function0,androidx.wear.compose.material.ChipColors,androidx.wear.compose.material.ChipBorder,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.foundation.layout.PaddingValues,androidx.compose.ui.graphics.Shape,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.ui.semantics.Role,kotlin.Function1)`.

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/painter/Painter>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#background(kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the background treatment for this chip, depending on `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#background(kotlin.Boolean)`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#contentColor(kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the content color for this chip, depending on `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#contentColor(kotlin.Boolean)`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#iconColor(kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the icon color for this chip, depending on `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#iconColor(kotlin.Boolean)`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#secondaryContentColor(kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the secondary content color for this chip, depending on `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#secondaryContentColor(kotlin.Boolean)`. |

## Public functions

### background

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0)

```
@Composable
fun background(enabled: Boolean): State<Painter>
```

Represents the background treatment for this chip, depending on `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#background(kotlin.Boolean)`. Backgrounds can be solid, transparent or have a gradient applied.

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is enabled |

### contentColor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0)

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

Represents the content color for this chip, depending on `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#contentColor(kotlin.Boolean)`.

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is enabled |

### iconColor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0)

```
@Composable
fun iconColor(enabled: Boolean): State<Color>
```

Represents the icon color for this chip, depending on `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#iconColor(kotlin.Boolean)`.

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is enabled |

### secondaryContentColor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0)

```
@Composable
fun secondaryContentColor(enabled: Boolean): State<Color>
```

Represents the secondary content color for this chip, depending on `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ChipColors#secondaryContentColor(kotlin.Boolean)`.

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is enabled |