# TextButtonDefaults

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/TextButton.kt+class:androidx.wear.compose.material3.TextButtonDefaults) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)


```
object TextButtonDefaults
```

<br />

*** ** * ** ***

Contains the default values used by `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`.

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#animatedShapes()()` Returns the default `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` for a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)` with an animation between two CornerBasedShapes when pressed. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#animatedShapes(androidx.compose.foundation.shape.CornerBasedShape,androidx.compose.foundation.shape.CornerBasedShape)(shape: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape?, pressedShape: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape?)` Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` with an animation between two CornerBasedShapes when pressed. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledTextButtonColors()()` Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for a filled `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a colored background with a contrasting content color. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledTextButtonColors(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 `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for a filled `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a colored background with a contrasting content color. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledTonalTextButtonColors()()` Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for a filled, tonal `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a muted colored background with a contrasting content color. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledTonalTextButtonColors(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 `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for a filled, tonal `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a muted colored background with a contrasting content color. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledVariantTextButtonColors()()` Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` as an alternative to the filledTonal TextButtonColors, giving a surface with more chroma to indicate selected or highlighted states that are not primary calls-to-action. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledVariantTextButtonColors(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 `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` as an alternative to the filledTonal TextButtonColors, giving a surface with more chroma to indicate selected or highlighted states that are not primary calls-to-action. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#outlinedTextButtonColors()()` Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for an outlined `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a transparent background with contrasting content color. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#outlinedTextButtonColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( contentColor: 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 `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for an outlined `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a transparent background with contrasting content color. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#shapes()()` Returns the default `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` for a static `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#shapes(androidx.compose.ui.graphics.Shape)(shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape)` Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` for a static `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#textButtonColors()()` Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` for a text button - by default, a transparent background with contrasting content color. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#textButtonColors(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 `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` for a text button - by default, a transparent background with contrasting content color. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#DefaultButtonSize()` The default size applied for buttons. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#LargeButtonSize()` The recommended size for a large button. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#SmallButtonSize()` The recommended size for a small button. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TextStyle` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#defaultButtonTextStyle()` The default text style applied for buttons. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TextStyle` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#largeButtonTextStyle()` The recommended text style for a large button. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#minimumVerticalListContentPadding()` The minimum vertical content padding for the list when a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)` is placed at the top or bottom edge. |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#pressedShape()` Recommended pressed `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#shape()` Recommended `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TextStyle` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#smallButtonTextStyle()` The recommended text style for a small button. |

## Public functions

### animatedShapes

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
@Composable
fun animatedShapes(): TextButtonShapes
```

Returns the default `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` for a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)` with an animation between two CornerBasedShapes when pressed.

Example of a simple text button using the default colors, animated when pressed:

```kotlin
import androidx.wear.compose.material3.ButtonDefaults
import androidx.wear.compose.material3.Text
import androidx.wear.compose.material3.TextButton
import androidx.wear.compose.material3.TextButtonDefaults

TextButton(
    onClick = { /* Do something */ },
    colors = TextButtonDefaults.filledTextButtonColors(),
    shapes = TextButtonDefaults.animatedShapes(),
) {
    Text(text = "ABC")
}
```

### animatedShapes

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
@Composable
fun animatedShapes(
    shape: CornerBasedShape? = null,
    pressedShape: CornerBasedShape? = null
): TextButtonShapes
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` with an animation between two CornerBasedShapes when pressed.

Example of a simple text button using the default colors, animated when pressed:

```kotlin
import androidx.wear.compose.material3.ButtonDefaults
import androidx.wear.compose.material3.Text
import androidx.wear.compose.material3.TextButton
import androidx.wear.compose.material3.TextButtonDefaults

TextButton(
    onClick = { /* Do something */ },
    colors = TextButtonDefaults.filledTextButtonColors(),
    shapes = TextButtonDefaults.animatedShapes(),
) {
    Text(text = "ABC")
}
```

| Parameters |
|---|---|
| `shape: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape? = null` | The normal shape of the TextButton - if null, the default `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#shape()` is used. |
| `pressedShape: https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape? = null` | The pressed shape of the TextButton - if null, the default `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#pressedShape()` is used. |

### filledTextButtonColors

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
@Composable
fun filledTextButtonColors(): TextButtonColors
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for a filled `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a colored background with a contrasting content color. If the text button is disabled then the colors will default to `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSurface()` with suitable alpha values applied.

### filledTextButtonColors

Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.6.0)

```
@Composable
fun filledTextButtonColors(
    containerColor: Color = Color.Unspecified,
    contentColor: Color = Color.Unspecified,
    disabledContainerColor: Color = Color.Unspecified,
    disabledContentColor: Color = Color.Unspecified
): TextButtonColors
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for a filled `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a colored background with a contrasting content color. If the text button is disabled then the colors will default to `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSurface()` with suitable alpha values applied.

Example of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)` with `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledTextButtonColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)`:

```kotlin
import androidx.wear.compose.material3.ButtonDefaults
import androidx.wear.compose.material3.Text
import androidx.wear.compose.material3.TextButton
import androidx.wear.compose.material3.TextButtonDefaults

TextButton(
    onClick = { /* Do something */ },
    colors = TextButtonDefaults.filledTextButtonColors(),
) {
    Text(text = "ABC")
}
```

![FilledTextButtonSample Composite
Image](https://developer.android.com/wear/images/design/WearComposeM3_FilledTextButtonSample_CompositeImage.png)

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

### filledTonalTextButtonColors

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
@Composable
fun filledTonalTextButtonColors(): TextButtonColors
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for a filled, tonal `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a muted colored background with a contrasting content color. If the text button is disabled then the colors will default to `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSurface()` with suitable alpha values applied.

### filledTonalTextButtonColors

Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.6.0)

```
@Composable
fun filledTonalTextButtonColors(
    containerColor: Color = Color.Unspecified,
    contentColor: Color = Color.Unspecified,
    disabledContainerColor: Color = Color.Unspecified,
    disabledContentColor: Color = Color.Unspecified
): TextButtonColors
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for a filled, tonal `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a muted colored background with a contrasting content color. If the text button is disabled then the colors will default to `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSurface()` with suitable alpha values applied.

Example of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)` with `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledTonalTextButtonColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)`:

```kotlin
import androidx.wear.compose.material3.ButtonDefaults
import androidx.wear.compose.material3.Text
import androidx.wear.compose.material3.TextButton
import androidx.wear.compose.material3.TextButtonDefaults

TextButton(
    onClick = { /* Do something */ },
    colors = TextButtonDefaults.filledTonalTextButtonColors(),
) {
    Text(text = "ABC")
}
```

![FilledTonalTextButtonSample Composite
Image](https://developer.android.com/wear/images/design/WearComposeM3_FilledTonalTextButtonSample_CompositeImage.png)

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

### filledVariantTextButtonColors

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
@Composable
fun filledVariantTextButtonColors(): TextButtonColors
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` as an alternative to the filledTonal TextButtonColors, giving a surface with more chroma to indicate selected or highlighted states that are not primary calls-to-action. If the text button is disabled then the colors will default to the MaterialTheme onSurface color with suitable alpha values applied.

Example of creating a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)` with `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledVariantTextButtonColors()`:

```kotlin
import androidx.wear.compose.material3.ButtonDefaults
import androidx.wear.compose.material3.Text
import androidx.wear.compose.material3.TextButton
import androidx.wear.compose.material3.TextButtonDefaults

TextButton(
    onClick = { /* Do something */ },
    colors = TextButtonDefaults.filledVariantTextButtonColors(),
) {
    Text(text = "ABC")
}
```

![FilledVariantTextButtonSample Composite
Image](https://developer.android.com/wear/images/design/WearComposeM3_FilledVariantTextButtonSample_CompositeImage.png)

### filledVariantTextButtonColors

Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.6.0)

```
@Composable
fun filledVariantTextButtonColors(
    containerColor: Color = Color.Unspecified,
    contentColor: Color = Color.Unspecified,
    disabledContainerColor: Color = Color.Unspecified,
    disabledContentColor: Color = Color.Unspecified
): TextButtonColors
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` as an alternative to the filledTonal TextButtonColors, giving a surface with more chroma to indicate selected or highlighted states that are not primary calls-to-action. If the text button is disabled then the colors will default to the MaterialTheme onSurface color with suitable alpha values applied.

Example of creating a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)` with `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledVariantTextButtonColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)`:

```kotlin
import androidx.wear.compose.material3.ButtonDefaults
import androidx.wear.compose.material3.Text
import androidx.wear.compose.material3.TextButton
import androidx.wear.compose.material3.TextButtonDefaults

TextButton(
    onClick = { /* Do something */ },
    colors = TextButtonDefaults.filledVariantTextButtonColors(),
) {
    Text(text = "ABC")
}
```

![FilledVariantTextButtonSample Composite
Image](https://developer.android.com/wear/images/design/WearComposeM3_FilledVariantTextButtonSample_CompositeImage.png)

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

### outlinedTextButtonColors

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
@Composable
fun outlinedTextButtonColors(): TextButtonColors
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for an outlined `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a transparent background with contrasting content color. If the button is disabled, then the colors will default to `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSurface()` with suitable alpha values applied.

### outlinedTextButtonColors

Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.6.0)

```
@Composable
fun outlinedTextButtonColors(
    contentColor: Color = Color.Unspecified,
    disabledContentColor: Color = Color.Unspecified
): TextButtonColors
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with the colors for an outlined `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`- by default, a transparent background with contrasting content color. If the button is disabled, then the colors will default to `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSurface()` with suitable alpha values applied.

Example of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)` with `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#outlinedTextButtonColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ButtonDefaults#outlinedButtonBorder(kotlin.Boolean,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp)`:

```kotlin
import androidx.wear.compose.material3.ButtonDefaults
import androidx.wear.compose.material3.Text
import androidx.wear.compose.material3.TextButton
import androidx.wear.compose.material3.TextButtonDefaults

TextButton(
    onClick = { /* Do something */ },
    colors = TextButtonDefaults.outlinedTextButtonColors(),
    border = ButtonDefaults.outlinedButtonBorder(enabled = true),
) {
    Text(text = "ABC")
}
```

![OutlinedTextButtonSample Composite
Image](https://developer.android.com/wear/images/design/WearComposeM3_OutlinedTextButtonSample_CompositeImage.png)

| Parameters |
|---|---|
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | The content color of this text button when enabled |
| `disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | The content color of this text button when not enabled |

### shapes

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
@Composable
fun shapes(): TextButtonShapes
```

Returns the default `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` for a static `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`.

### shapes

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
@Composable
fun shapes(shape: Shape): TextButtonShapes
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` for a static `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`.

| Parameters |
|---|---|
| `shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | The normal shape of the TextButton. |

### textButtonColors

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
@Composable
fun textButtonColors(): TextButtonColors
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` for a text button - by default, a transparent background with contrasting content color. If the button is disabled then the colors default to `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSurface()` with suitable alpha values applied.

### textButtonColors

Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.6.0)

```
@Composable
fun textButtonColors(
    containerColor: Color = Color.Transparent,
    contentColor: Color = Color.Unspecified,
    disabledContainerColor: Color = Color.Transparent,
    disabledContentColor: Color = Color.Unspecified
): TextButtonColors
```

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` for a text button - by default, a transparent background with contrasting content color. If the button is disabled then the colors default to `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSurface()` with suitable alpha values applied.

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

## Public properties

### DefaultButtonSize

```
val DefaultButtonSize: Dp
```

The default size applied for buttons. It is recommended to apply this size using `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/touchTargetAwareSize.modifier#(androidx.compose.ui.Modifier).touchTargetAwareSize(androidx.compose.ui.unit.Dp)`.

### LargeButtonSize

```
val LargeButtonSize: Dp
```

The recommended size for a large button. It is recommended to apply this size using `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/touchTargetAwareSize.modifier#(androidx.compose.ui.Modifier).touchTargetAwareSize(androidx.compose.ui.unit.Dp)`.

### SmallButtonSize

```
val SmallButtonSize: Dp
```

The recommended size for a small button. It is recommended to apply this size using `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/touchTargetAwareSize.modifier#(androidx.compose.ui.Modifier).touchTargetAwareSize(androidx.compose.ui.unit.Dp)`.

### defaultButtonTextStyle

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val defaultButtonTextStyle: TextStyle
```

The default text style applied for buttons.

### largeButtonTextStyle

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val largeButtonTextStyle: TextStyle
```

The recommended text style for a large button.

### minimumVerticalListContentPadding

```
val minimumVerticalListContentPadding: Dp
```

The minimum vertical content padding for the list when a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)` is placed at the top or bottom edge. Recommended for use with `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/lazy/TransformingLazyColumnItemScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/lazy/TransformingLazyColumnItemScope#(androidx.compose.ui.Modifier).minimumVerticalContentPadding(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)`, which allows items to choose a preferred content padding for the list. `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/lazy/TransformingLazyColumn.composable#TransformingLazyColumn(androidx.compose.ui.Modifier,androidx.wear.compose.foundation.lazy.TransformingLazyColumnState,androidx.compose.foundation.layout.PaddingValues,kotlin.Boolean,androidx.compose.foundation.layout.Arrangement.Vertical,androidx.compose.ui.Alignment.Horizontal,androidx.compose.foundation.gestures.FlingBehavior,kotlin.Boolean,androidx.wear.compose.foundation.rotary.RotaryScrollableBehavior,androidx.compose.foundation.OverscrollEffect,androidx.wear.compose.foundation.lazy.TransformingLazyColumnFirstLayoutItemProvider,kotlin.Function1)` takes its contentPadding as the maximum of the preferred content padding values and its own contentPadding parameter.

### pressedShape

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val pressedShape: CornerBasedShape
```

Recommended pressed `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`.

### shape

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val shape: RoundedCornerShape
```

Recommended `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButton.composable#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`.

### smallButtonTextStyle

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val smallButtonTextStyle: TextStyle
```

The recommended text style for a small button.