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

```kotlin
public object TextToggleButtonDefaults
```

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

## Functions

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

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

Returns the default [TextToggleButtonShapes](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextToggleButtonShapes) for a [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton) with a static shape.

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

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

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

Returns a [TextToggleButtonShapes](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextToggleButtonShapes) for a [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton) with a static shape.

#### Parameters

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

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

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

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

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

A simple text toggle 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,
): TextToggleButtonShapes
```

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

A simple text toggle button using the default colors, animated when pressed.

#### Parameters

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

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

<h2 id="variantanimatedshapes">variantAnimatedShapes</h2>

```kotlin
@Composable
public fun variantAnimatedShapes(): TextToggleButtonShapes
```

Returns the default [TextToggleButtonShapes](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextToggleButtonShapes) with an animation between three [CornerSize](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/CornerSize)s
based on the pressed state and checked/unchecked.

A simple text toggle button using the default colors, animated on Press and Check/Uncheck:

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

<h2 id="variantanimatedshapes-uncheckedshape-checkedshape">variantAnimatedShapes</h2>

```kotlin
@Composable
public fun variantAnimatedShapes(
    uncheckedShape: CornerBasedShape? = null,
    checkedShape: CornerBasedShape? = null,
): TextToggleButtonShapes
```

Returns a [TextToggleButtonShapes](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextToggleButtonShapes) with an animation between three [CornerSize](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/CornerSize)s based on the
pressed state and checked/unchecked.

A simple text toggle button using the default colors, animated on Press and Check/Uncheck:

#### Parameters

| | |
| --- | --- |
| uncheckedShape | the unchecked shape - if null, the default [TextToggleButtonDefaults.shape](/jetpack-compose/androidx.wear.compose/compose-material3/objects/TextToggleButtonDefaults) is used. |
| checkedShape | the checked shape - if null, the default [TextToggleButtonDefaults.checkedShape](/jetpack-compose/androidx.wear.compose/compose-material3/objects/TextToggleButtonDefaults) is used. |

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

<h2 id="colors">colors</h2>

```kotlin
@Composable
public fun colors(): TextToggleButtonColors
```

Returns a [TextToggleButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextToggleButtonColors) for a [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton)
- by default, a colored background with a contrasting content color. If the button is disabled, then the colors will have an alpha (`DisabledContainerAlpha` or `DisabledContentAlpha`) value applied.

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

<h2 id="colors-checkedcontainercolor-checkedcontentcolor-uncheckedcontainercolor-uncheckedcontentcolor-disabledcheckedcontainercolor-disabledcheckedcontentcolor-disableduncheckedcontainercolor-disableduncheckedcontentcolor">colors</h2>

```kotlin
@Composable
public fun colors(
    checkedContainerColor: Color = Color.Unspecified,
    checkedContentColor: Color = Color.Unspecified,
    uncheckedContainerColor: Color = Color.Unspecified,
    uncheckedContentColor: Color = Color.Unspecified,
    disabledCheckedContainerColor: Color = Color.Unspecified,
    disabledCheckedContentColor: Color = Color.Unspecified,
    disabledUncheckedContainerColor: Color = Color.Unspecified,
    disabledUncheckedContentColor: Color = Color.Unspecified,
): TextToggleButtonColors
```

Returns a [TextToggleButtonColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/TextToggleButtonColors) for a [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton)
- by default, a colored background with a contrasting content color. If the button is disabled, then the colors will have an alpha (`DisabledContainerAlpha` or `DisabledContentAlpha`) value applied.

#### Parameters

| | |
| --- | --- |
| checkedContainerColor | the container color of this [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton) when enabled and checked |
| checkedContentColor | the content color of this [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton) when enabled and checked |
| uncheckedContainerColor | the container color of this [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton) when enabled and unchecked |
| uncheckedContentColor | the content color of this [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton) when enabled and unchecked |
| disabledCheckedContainerColor | the container color of this [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton) when checked and not enabled |
| disabledCheckedContentColor | the content color of this [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton) when checked and not enabled |
| disabledUncheckedContainerColor | the container color of this [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton) when unchecked and not enabled |
| disabledUncheckedContentColor | the content color of this [TextToggleButton](/jetpack-compose/androidx.wear.compose/compose-material3/components/TextToggleButton) when unchecked and not enabled |