# SelectableChipColors

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/SelectableChip.kt+class:androidx.wear.compose.material.SelectableChipColors) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.4.0)


```
interface SelectableChipColors
```

<br />

*** ** * ** ***

Represents the background and content colors used in `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChip.composable#SelectableChip(kotlin.Boolean,kotlin.Function1,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function1,kotlin.Function1,androidx.wear.compose.material.SelectableChipColors,kotlin.Boolean,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.foundation.layout.PaddingValues,androidx.compose.ui.graphics.Shape,kotlin.Function0)`s in different states.

## 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/SelectableChipColors#background(kotlin.Boolean,kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the background treatment for this chip, depending on the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#background(kotlin.Boolean,kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#background(kotlin.Boolean,kotlin.Boolean)` properties. |
| `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/SelectableChipColors#contentColor(kotlin.Boolean,kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the content color for this chip, depending on the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#contentColor(kotlin.Boolean,kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#contentColor(kotlin.Boolean,kotlin.Boolean)` properties. |
| `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/SelectableChipColors#secondaryContentColor(kotlin.Boolean,kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the secondary content color for this chip, depending on the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#secondaryContentColor(kotlin.Boolean,kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#secondaryContentColor(kotlin.Boolean,kotlin.Boolean)` properties. |
| `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/SelectableChipColors#selectionControlColor(kotlin.Boolean,kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the color for the selection control content for this chip, depending on the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#selectionControlColor(kotlin.Boolean,kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#selectionControlColor(kotlin.Boolean,kotlin.Boolean)` properties. |

## Public functions

### background

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

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

Represents the background treatment for this chip, depending on the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#background(kotlin.Boolean,kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#background(kotlin.Boolean,kotlin.Boolean)` properties. Backgrounds are typically a linear gradient when the chip is selected and solid when it is not.

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

### contentColor

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

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

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

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

### secondaryContentColor

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

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

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

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

### selectionControlColor

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#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 `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#selectionControlColor(kotlin.Boolean,kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SelectableChipColors#selectionControlColor(kotlin.Boolean,kotlin.Boolean)` properties.

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