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

```kotlin
public object TextButtonDefaults
```

Contains the default values used by [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton).

## Functions

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

Returns the default [TextButtonShapes](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonShapes) for a static [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton).

<h2 id="shapes-shape">shapes</h2>

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

Returns a [TextButtonShapes](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonShapes) for a static [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton).

#### Parameters

| | |
| --- | --- |
| shape | The normal shape of the TextButton. |

<hr class="docs-overload-divider">

<h2 id="animatedshapes">animatedShapes</h2>

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

Returns the default [TextButtonShapes](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonShapes) for a [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton) with an animation between two
CornerBasedShapes when pressed.

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

<hr class="docs-overload-divider">

<h2 id="animatedshapes-shape-pressedshape">animatedShapes</h2>

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

Returns a [TextButtonShapes](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonShapes) with an animation between two CornerBasedShapes when pressed.

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

#### Parameters

| | |
| --- | --- |
| shape | The normal shape of the TextButton - if null, the default [TextButtonDefaults.shape](/jetpack-compose/androidx.wear.compose/compose-material3/objects/TextButtonDefaults) is used. |
| pressedShape | The pressed shape of the TextButton - if null, the default [TextButtonDefaults.pressedShape](/jetpack-compose/androidx.wear.compose/compose-material3/objects/TextButtonDefaults) is used. |

<hr class="docs-overload-divider">

<h2 id="filledtextbuttoncolors">filledTextButtonColors</h2>

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

Returns a [TextButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonColors) with the colors for a filled [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton)- by default, a colored
background with a contrasting content color. If the text button is disabled then the colors
will default to [ColorScheme.onSurface](/jetpack-compose/androidx.wear.compose/compose-material3/classes/ColorScheme) with suitable alpha values applied.

<hr class="docs-overload-divider">

<h2 id="filledtextbuttoncolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor">filledTextButtonColors</h2>

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

Returns a [TextButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonColors) with the colors for a filled [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton)- by default, a colored
background with a contrasting content color. If the text button is disabled then the colors
will default to [ColorScheme.onSurface](/jetpack-compose/androidx.wear.compose/compose-material3/classes/ColorScheme) with suitable alpha values applied.

Example of [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton) with [filledTextButtonColors](#filledtextbuttoncolors):

#### 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 |

<hr class="docs-overload-divider">

<h2 id="filledvarianttextbuttoncolors">filledVariantTextButtonColors</h2>

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

Returns a [TextButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/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 [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton) with [filledVariantTextButtonColors](#filledvarianttextbuttoncolors):

<hr class="docs-overload-divider">

<h2 id="filledvarianttextbuttoncolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor">filledVariantTextButtonColors</h2>

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

Returns a [TextButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/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 [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton) with [filledVariantTextButtonColors](#filledvarianttextbuttoncolors):

#### 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 |

<hr class="docs-overload-divider">

<h2 id="filledtonaltextbuttoncolors">filledTonalTextButtonColors</h2>

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

Returns a [TextButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonColors) with the colors for a filled, tonal [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton)- by default, a
muted colored background with a contrasting content color. If the text button is disabled
then the colors will default to [ColorScheme.onSurface](/jetpack-compose/androidx.wear.compose/compose-material3/classes/ColorScheme) with suitable alpha values applied.

<hr class="docs-overload-divider">

<h2 id="filledtonaltextbuttoncolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor">filledTonalTextButtonColors</h2>

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

Returns a [TextButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonColors) with the colors for a filled, tonal [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton)- by default, a
muted colored background with a contrasting content color. If the text button is disabled
then the colors will default to [ColorScheme.onSurface](/jetpack-compose/androidx.wear.compose/compose-material3/classes/ColorScheme) with suitable alpha values applied.

Example of [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton) with [filledTonalTextButtonColors](#filledtonaltextbuttoncolors):

#### 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 |

<hr class="docs-overload-divider">

<h2 id="outlinedtextbuttoncolors">outlinedTextButtonColors</h2>

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

Returns a [TextButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonColors) with the colors for an outlined [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton)- by default, a
transparent background with contrasting content color. If the button is disabled, then the
colors will default to [ColorScheme.onSurface](/jetpack-compose/androidx.wear.compose/compose-material3/classes/ColorScheme) with suitable alpha values applied.

<hr class="docs-overload-divider">

<h2 id="outlinedtextbuttoncolors-contentcolor-disabledcontentcolor">outlinedTextButtonColors</h2>

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

Returns a [TextButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonColors) with the colors for an outlined [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton)- by default, a
transparent background with contrasting content color. If the button is disabled, then the
colors will default to [ColorScheme.onSurface](/jetpack-compose/androidx.wear.compose/compose-material3/classes/ColorScheme) with suitable alpha values applied.

Example of [TextButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextButton) with [outlinedTextButtonColors](#outlinedtextbuttoncolors) and
[ButtonDefaults.outlinedButtonBorder](/jetpack-compose/androidx.wear.compose/compose-material3/objects/ButtonDefaults):

#### Parameters

| | |
| --- | --- |
| contentColor | The content color of this text button when enabled |
| disabledContentColor | The content color of this text button when not enabled |

<hr class="docs-overload-divider">

<h2 id="textbuttoncolors">textButtonColors</h2>

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

Returns a [TextButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonColors) for a text button - by default, a transparent background with
contrasting content color. If the button is disabled then the colors default to
[ColorScheme.onSurface](/jetpack-compose/androidx.wear.compose/compose-material3/classes/ColorScheme) with suitable alpha values applied.

<hr class="docs-overload-divider">

<h2 id="textbuttoncolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor">textButtonColors</h2>

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

Returns a [TextButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextButtonColors) for a text button - by default, a transparent background with
contrasting content color. If the button is disabled then the colors default to
[ColorScheme.onSurface](/jetpack-compose/androidx.wear.compose/compose-material3/classes/ColorScheme) with suitable alpha values applied.

#### 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 |