---
title: "TextButtonColors"
description: "Represents the container and content colors used in a text button in different states.

See [TextButtonDefaults.filledTextButtonColors],
[TextButtonDefaults.filledTonalTextButtonColors], [TextButtonDefaults.textButtonColors] and
[TextButtonDefaults.outlinedTextButtonColors] for [TextButtonColors] with different levels of
emphasis."
type: "class"
---

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


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

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


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


Represents the container and content colors used in a text button in different states.

See `TextButtonDefaults.filledTextButtonColors`,
`TextButtonDefaults.filledTonalTextButtonColors`, `TextButtonDefaults.textButtonColors` and
`TextButtonDefaults.outlinedTextButtonColors` for `TextButtonColors` with different levels of
emphasis.

#### Parameters

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



## Functions

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


Returns a copy of this TextButtonColors optionally overriding some of the values.

#### Parameters

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




