---
title: "ToggleChipColors"
description: "Represents the background and content colors used in [ToggleChip]s in different states."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>



```kotlin
public interface ToggleChipColors
```


Represents the background and content colors used in `ToggleChip`s in different states.


## Functions

```kotlin
@Composable public fun background(enabled: Boolean, checked: Boolean): State<Painter>
```


Represents the background treatment for this chip, depending on the `enabled` and `checked`
properties. Backgrounds are typically a linear gradient when the chip is checked and solid
when it is not.

#### Parameters

| | |
| --- | --- |
| enabled | Whether the chip is enabled |
| checked | Whether the chip is currently checked or unchecked |



```kotlin
@Composable public fun contentColor(enabled: Boolean, checked: Boolean): State<Color>
```


Represents the content color for this chip, depending on the `enabled` and `checked`
properties.

#### Parameters

| | |
| --- | --- |
| enabled | Whether the chip is enabled |
| checked | Whether the chip is currently checked or unchecked |



```kotlin
@Composable public fun secondaryContentColor(enabled: Boolean, checked: Boolean): State<Color>
```


Represents the secondary content color for this chip, depending on the `enabled` and
`checked` properties.

#### Parameters

| | |
| --- | --- |
| enabled | Whether the chip is enabled |
| checked | Whether the chip is currently checked or unchecked |



```kotlin
@Composable public fun toggleControlColor(enabled: Boolean, checked: Boolean): State<Color>
```


Represents the color for the toggle control content for this chip, depending on the `enabled`
and `checked` properties.

#### Parameters

| | |
| --- | --- |
| enabled | Whether the chip is enabled |
| checked | Whether the chip is currently checked or unchecked |




