---
title: "IconButtonColors"
description: "Represents the container and content colors used in an icon button in different states.
- See [IconButtonDefaults.filledIconButtonColors] and [IconButtonDefaults.filledTonalIconButtonColors] for the default colors used in a [FilledIconButton].
- See [IconButtonDefaults.outlinedIconButtonColors] for the default colors used in an [OutlinedIconButton]."
type: "class"
---

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


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

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


```kotlin
public class IconButtonColors(
    public val containerColor: Color,
    public val contentColor: Color,
    public val disabledContainerColor: Color,
    public val disabledContentColor: Color,
)
```


Represents the container and content colors used in an icon button in different states.
- See `IconButtonDefaults.filledIconButtonColors` and `IconButtonDefaults.filledTonalIconButtonColors` for the default colors used in a `FilledIconButton`.
- See `IconButtonDefaults.outlinedIconButtonColors` for the default colors used in an `OutlinedIconButton`.

#### Parameters

| | |
| --- | --- |
| containerColor | the background color of this icon button when enabled. |
| contentColor | the color of this icon when enabled. |
| disabledContainerColor | the background color of this icon button when not enabled. |
| disabledContentColor | the color of this icon when not enabled. |



## Functions

```kotlin
public fun copy(
        containerColor: Color = this.containerColor,
        contentColor: Color = this.contentColor,
        disabledContainerColor: Color = this.disabledContainerColor,
        disabledContentColor: Color = this.disabledContentColor,
    ): IconButtonColors
```


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

#### Parameters

| | |
| --- | --- |
| containerColor | the background color of this icon button when enabled. |
| contentColor | the color of this icon when enabled. |
| disabledContainerColor | the background color of this icon button when not enabled. |
| disabledContentColor | the color of this icon when not enabled. |




