# IconButtonColors

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/IconButton.kt+class:androidx.compose.material3.IconButtonColors) Common/AllAndroid/JVM
- Cmn

  ```
  class IconButtonColors
  ```

*** ** * ** ***

Represents the container and content colors used in an icon button in different states.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonColors#IconButtonColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` create an instance with arbitrary colors. | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonColors` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonColors#copy(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Returns a copy of this IconButtonColors, optionally overriding some of the values. | Cmn |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonColors#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonColors#hashCode()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonColors#containerColor()` the container color of this icon button when enabled. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonColors#contentColor()` the content color of this icon button when enabled. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonColors#disabledContainerColor()` the container color of this icon button when not enabled. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonColors#disabledContentColor()` the content color of this icon button when not enabled. | Cmn |

## Public constructors

### IconButtonColors

Cmn

```
IconButtonColors(
    containerColor: Color,
    contentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color
)
```

create an instance with arbitrary colors.

- See `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonDefaults#filledIconButtonColors()` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonDefaults#filledTonalIconButtonColors()` for the default colors used in a `https://developer.android.com/reference/kotlin/androidx/compose/material3/FilledIconButton.composable#FilledIconButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.ui.graphics.Shape,androidx.compose.material3.IconButtonColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0)`.

- See `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButtonDefaults#outlinedIconButtonVibrantColors()` for the default colors used in an `https://developer.android.com/reference/kotlin/androidx/compose/material3/OutlinedIconButton.composable#OutlinedIconButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.ui.graphics.Shape,androidx.compose.material3.IconButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0)`.

| Parameters |
|---|---|
| `containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the container color of this icon button when enabled. |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the content color of this icon button when enabled. |
| `disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the container color of this icon button when not enabled. |
| `disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the content color of this icon button when not enabled. |

## Public functions

### copy

Cmn

```
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. This uses the Color.Unspecified to mean "use the value from the source"

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

## Public properties

### containerColor

Cmn

```
val containerColor: Color
```

the container color of this icon button when enabled.

### contentColor

Cmn

```
val contentColor: Color
```

the content color of this icon button when enabled.

### disabledContainerColor

Cmn

```
val disabledContainerColor: Color
```

the container color of this icon button when not enabled.

### disabledContentColor

Cmn

```
val disabledContentColor: Color
```

the content color of this icon button when not enabled.