---
title: "CheckboxButtonColors"
description: "Represents the different container and content colors used for [CheckboxButton] in various
states, that are checked, unchecked, enabled and disabled."
type: "class"
---

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


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

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


```kotlin
public class CheckboxButtonColors(
    public val checkedContainerColor: Color,
    public val checkedContentColor: Color,
    public val checkedSecondaryContentColor: Color,
    public val checkedIconColor: Color,
    public val checkedBoxColor: Color,
    public val checkedCheckmarkColor: Color,
    public val uncheckedContainerColor: Color,
    public val uncheckedContentColor: Color,
    public val uncheckedSecondaryContentColor: Color,
    public val uncheckedIconColor: Color,
    public val uncheckedBoxColor: Color,
    public val disabledCheckedContainerColor: Color,
    public val disabledCheckedContentColor: Color,
    public val disabledCheckedSecondaryContentColor: Color,
    public val disabledCheckedIconColor: Color,
    public val disabledCheckedBoxColor: Color,
    public val disabledCheckedCheckmarkColor: Color,
    public val disabledUncheckedContainerColor: Color,
    public val disabledUncheckedContentColor: Color,
    public val disabledUncheckedSecondaryContentColor: Color,
    public val disabledUncheckedIconColor: Color,
    public val disabledUncheckedBoxColor: Color,
)
```


Represents the different container and content colors used for `CheckboxButton` in various
states, that are checked, unchecked, enabled and disabled.

#### Parameters

| | |
| --- | --- |
| checkedContainerColor | Container or background color when the checkbox is checked |
| checkedContentColor | Color of the content like label when the checkbox is checked |
| checkedSecondaryContentColor | Color of the secondary content like secondary label when the checkbox is checked |
| checkedIconColor | Color of the icon when the checkbox is checked |
| checkedBoxColor | Color of the box when the checkbox is checked |
| checkedCheckmarkColor | Color of the checkmark when the checkbox is checked |
| uncheckedContainerColor | Container or background color when the checkbox is unchecked |
| uncheckedContentColor | Color of the content like label when the checkbox is unchecked |
| uncheckedSecondaryContentColor | Color of the secondary content like secondary label when the checkbox is unchecked |
| uncheckedIconColor | Color of the icon when the checkbox is unchecked |
| uncheckedBoxColor | Color of the box when the checkbox is unchecked |
| disabledCheckedContainerColor | Container or background color when the checkbox is disabled and checked |
| disabledCheckedContentColor | Color of content like label when the checkbox is disabled and checked |
| disabledCheckedSecondaryContentColor | Color of the secondary content like secondary label when the checkbox is disabled and checked |
| disabledCheckedIconColor | Icon color when the checkbox is disabled and checked |
| disabledCheckedBoxColor | Box color when the checkbox is disabled and checked |
| disabledCheckedCheckmarkColor | Checkmark color when the checkbox is disabled and checked |
| disabledUncheckedContainerColor | Container or background color when the checkbox is disabled and unchecked |
| disabledUncheckedContentColor | Color of the content like label when the checkbox is disabled and unchecked |
| disabledUncheckedSecondaryContentColor | Color of the secondary content like secondary label when the checkbox is disabled and unchecked |
| disabledUncheckedIconColor | Icon color when the checkbox is disabled and unchecked |
| disabledUncheckedBoxColor | Box color when the checkbox is disabled and unchecked |



## Functions

```kotlin
public fun copy(
        checkedContainerColor: Color = this.checkedContainerColor,
        checkedContentColor: Color = this.checkedContentColor,
        checkedSecondaryContentColor: Color = this.checkedSecondaryContentColor,
        checkedIconColor: Color = this.checkedIconColor,
        checkedBoxColor: Color = this.checkedBoxColor,
        checkedCheckmarkColor: Color = this.checkedCheckmarkColor,
        uncheckedContainerColor: Color = this.uncheckedContainerColor,
        uncheckedContentColor: Color = this.uncheckedContentColor,
        uncheckedSecondaryContentColor: Color = this.uncheckedSecondaryContentColor,
        uncheckedIconColor: Color = this.uncheckedIconColor,
        uncheckedBoxColor: Color = this.uncheckedBoxColor,
        disabledCheckedContainerColor: Color = this.disabledCheckedContainerColor,
        disabledCheckedContentColor: Color = this.disabledCheckedContentColor,
        disabledCheckedSecondaryContentColor: Color = this.disabledCheckedSecondaryContentColor,
        disabledCheckedIconColor: Color = this.disabledCheckedIconColor,
        disabledCheckedBoxColor: Color = this.disabledCheckedBoxColor,
        disabledCheckedCheckmarkColor: Color = this.disabledCheckedCheckmarkColor,
        disabledUncheckedContainerColor: Color = this.disabledUncheckedContainerColor,
        disabledUncheckedContentColor: Color = this.disabledUncheckedContentColor,
        disabledUncheckedSecondaryContentColor: Color = this.disabledUncheckedSecondaryContentColor,
        disabledUncheckedIconColor: Color = this.disabledUncheckedIconColor,
        disabledUncheckedBoxColor: Color = this.disabledUncheckedBoxColor,
    ): CheckboxButtonColors
```


Returns a copy of this CheckboxButtonColors, optionally overriding some of the values.



