<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3ExpressiveApi
object ToggleButtonDefaults
```

Contains the default values for all five toggle button types.

## Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val MinHeight = ButtonSmallTokens.ContainerHeight
```

The default min height applied for all toggle buttons. Note that you can override it by
applying Modifier.heightIn directly on the toggle button composable.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val IconSpacing = ButtonSmallTokens.IconLabelSpace
```

The default size of the spacing between an icon and a text when they used inside any toggle
button.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val IconSize = ButtonSmallTokens.IconSize
```

The default size of the spacing between an icon and a text when they used inside any toggle
button.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val ContentPadding =
    PaddingValues(
        start = ToggleButtonStartPadding,
        top = ButtonVerticalPadding,
        end = ToggleButtonEndPadding,
        bottom = ButtonVerticalPadding,
    )
```

The default content padding used by all toggle buttons.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val roundShape: Shape
```

A round shape that can be used for all [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton)s and its variants

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val squareShape: Shape
```

A square shape that can be used for all [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton)s and its variants

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val shape: Shape
```

The default unchecked shape for [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton)

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val pressedShape: Shape
```

The default pressed shape for [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton)

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val checkedShape: Shape
```

The default checked shape for [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton)

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val extraSmallSquareShape: Shape
```

The default square shape for a extra small toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val mediumSquareShape: Shape
```

The default square shape for a medium toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val largeSquareShape: Shape
```

The default square shape for a large toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val extraLargeSquareShape: Shape
```

The default square shape for a extra large toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val extraSmallPressedShape: Shape
```

The default pressed shape for a extra small toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val mediumPressedShape: Shape
```

The default pressed shape for a medium toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val largePressedShape: Shape
```

The default pressed shape for a large toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val extraLargePressedShape: Shape
```

The default pressed shape for a extra large toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val extraSmallCheckedSquareShape: Shape
```

The default checked square shape for a extra small toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val mediumCheckedSquareShape: Shape
```

The default checked square shape for a medium toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val largeCheckedSquareShape: Shape
```

The default checked square shape for a large toggle button

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val extraLargeCheckedSquareShape: Shape
```

The default checked square shape for a extra large toggle button

## Functions

```kotlin
@Composable fun shapes() = MaterialTheme.shapes.defaultToggleButtonShapes
```

Creates a [ToggleButtonShapes](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonShapes) that represents the default shape, pressedShape, and
checkedShape used in a [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton).

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

```kotlin
@Composable
    fun shapes(
        shape: Shape? = null,
        pressedShape: Shape? = null,
        checkedShape: Shape? = null,
    ): ToggleButtonShapes
```

Creates a [ToggleButtonShapes](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonShapes) that represents the default shape, pressedShape, and
checkedShape used in a [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton) and its variants.

#### Parameters

| | |
| --- | --- |
| shape | the unchecked shape for [ToggleButtonShapes](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonShapes) |
| pressedShape | the unchecked shape for [ToggleButtonShapes](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonShapes) |
| checkedShape | the unchecked shape for [ToggleButtonShapes](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonShapes) |

```kotlin
@Composable fun toggleButtonColors() = MaterialTheme.colorScheme.defaultToggleButtonColors
```

Creates a [ToggleButtonColors](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonColors) that represents the default container and content colors used
in a [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton).

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

<h2 id="togglebuttoncolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor-checkedcontainercolor-checkedcontentcolor">toggleButtonColors</h2>

```kotlin
@Composable
    fun toggleButtonColors(
        containerColor: Color = Color.Unspecified,
        contentColor: Color = Color.Unspecified,
        disabledContainerColor: Color = Color.Unspecified,
        disabledContentColor: Color = Color.Unspecified,
        checkedContainerColor: Color = Color.Unspecified,
        checkedContentColor: Color = Color.Unspecified,
    ): ToggleButtonColors
```

Creates a [ToggleButtonColors](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonColors) that represents the default container and content colors used
in a [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton).

#### Parameters

| | |
| --- | --- |
| containerColor | the container color of this [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton) when enabled. |
| contentColor | the content color of this [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton) when enabled. |
| disabledContainerColor | the container color of this [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton) when not enabled. |
| disabledContentColor | the content color of this [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton) when not enabled. |
| checkedContainerColor | the container color of this [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton) when checked. |
| checkedContentColor | the content color of this [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton) when checked. |

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

<h2 id="elevatedtogglebuttoncolors">elevatedToggleButtonColors</h2>

```kotlin
@Composable
    fun elevatedToggleButtonColors() = MaterialTheme.colorScheme.defaultElevatedToggleButtonColors
```

Creates a [ToggleButtonColors](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonColors) that represents the default container and content colors used
in a [ElevatedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedToggleButton).

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

<h2 id="elevatedtogglebuttoncolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor-checkedcontainercolor-checkedcontentcolor">elevatedToggleButtonColors</h2>

```kotlin
@Composable
    fun elevatedToggleButtonColors(
        containerColor: Color = Color.Unspecified,
        contentColor: Color = Color.Unspecified,
        disabledContainerColor: Color = Color.Unspecified,
        disabledContentColor: Color = Color.Unspecified,
        checkedContainerColor: Color = Color.Unspecified,
        checkedContentColor: Color = Color.Unspecified,
    ): ToggleButtonColors
```

Creates a [ToggleButtonColors](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonColors) that represents the default container and content colors used
in a [ElevatedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedToggleButton).

#### Parameters

| | |
| --- | --- |
| containerColor | the container color of this [ElevatedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedToggleButton) when enabled. |
| contentColor | the content color of this [ElevatedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedToggleButton) when enabled. |
| disabledContainerColor | the container color of this [ElevatedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedToggleButton) when not enabled. |
| disabledContentColor | the content color of this [ElevatedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedToggleButton) when not enabled. |
| checkedContainerColor | the container color of this [ElevatedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedToggleButton) when checked. |
| checkedContentColor | the content color of this [ElevatedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedToggleButton) when checked. |

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

<h2 id="tonaltogglebuttoncolors">tonalToggleButtonColors</h2>

```kotlin
@Composable
    fun tonalToggleButtonColors() = MaterialTheme.colorScheme.defaultTonalToggleButtonColors
```

Creates a [ToggleButtonColors](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonColors) that represents the default container and content colors used
in a [TonalToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/TonalToggleButton).

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

<h2 id="tonaltogglebuttoncolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor-checkedcontainercolor-checkedcontentcolor">tonalToggleButtonColors</h2>

```kotlin
@Composable
    fun tonalToggleButtonColors(
        containerColor: Color = Color.Unspecified,
        contentColor: Color = Color.Unspecified,
        disabledContainerColor: Color = Color.Unspecified,
        disabledContentColor: Color = Color.Unspecified,
        checkedContainerColor: Color = Color.Unspecified,
        checkedContentColor: Color = Color.Unspecified,
    ): ToggleButtonColors
```

Creates a [ToggleButtonColors](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonColors) that represents the default container and content colors used
in a [TonalToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/TonalToggleButton).

#### Parameters

| | |
| --- | --- |
| containerColor | the container color of this [TonalToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/TonalToggleButton) when enabled. |
| contentColor | the content color of this [TonalToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/TonalToggleButton) when enabled. |
| disabledContainerColor | the container color of this [TonalToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/TonalToggleButton) when not enabled. |
| disabledContentColor | the content color of this [TonalToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/TonalToggleButton) when not enabled. |
| checkedContainerColor | the container color of this [TonalToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/TonalToggleButton) when checked. |
| checkedContentColor | the content color of this [TonalToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/TonalToggleButton) when checked. |

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

<h2 id="outlinedtogglebuttoncolors">outlinedToggleButtonColors</h2>

```kotlin
@Composable
    fun outlinedToggleButtonColors() = MaterialTheme.colorScheme.defaultOutlinedToggleButtonColors
```

Creates a [ToggleButtonColors](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonColors) that represents the default container and content colors used
in a [OutlinedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedToggleButton).

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

<h2 id="outlinedtogglebuttoncolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor-checkedcontainercolor-checkedcontentcolor">outlinedToggleButtonColors</h2>

```kotlin
@Composable
    fun outlinedToggleButtonColors(
        containerColor: Color = Color.Unspecified,
        contentColor: Color = Color.Unspecified,
        disabledContainerColor: Color = Color.Unspecified,
        disabledContentColor: Color = Color.Unspecified,
        checkedContainerColor: Color = Color.Unspecified,
        checkedContentColor: Color = Color.Unspecified,
    ): ToggleButtonColors
```

Creates a [ToggleButtonColors](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonColors) that represents the default container and content colors used
in a [OutlinedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedToggleButton).

#### Parameters

| | |
| --- | --- |
| containerColor | the container color of this [OutlinedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedToggleButton) when enabled. |
| contentColor | the content color of this [OutlinedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedToggleButton) when enabled. |
| disabledContainerColor | the container color of this [OutlinedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedToggleButton) when not enabled. |
| disabledContentColor | the content color of this [OutlinedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedToggleButton) when not enabled. |
| checkedContainerColor | the container color of this [OutlinedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedToggleButton) when checked. |
| checkedContentColor | the content color of this [OutlinedToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedToggleButton) when checked. |

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

<h2 id="shapesfor-buttonheight">shapesFor</h2>

```kotlin
@Composable
    fun shapesFor(buttonHeight: Dp): ToggleButtonShapes
```

Recommended [ToggleButtonShapes](/jetpack-compose/androidx.compose.material3/material3/classes/ToggleButtonShapes) for a provided toggle button height.

#### Parameters

| | |
| --- | --- |
| buttonHeight | The height of the button |