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

```kotlin
public object ToggleButtonDefaults
```

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

## Functions

<h2 id="togglebuttoncolors-checkedbackgroundcolor-checkedcontentcolor-disabledcheckedbackgroundcolor-disabledcheckedcontentcolor-uncheckedbackgroundcolor-uncheckedcontentcolor-disableduncheckedbackgroundcolor-disableduncheckedcontentcolor">toggleButtonColors</h2>

```kotlin
@Composable
public fun toggleButtonColors(
    checkedBackgroundColor: Color = MaterialTheme.colors.primary,
    checkedContentColor: Color = contentColorFor(checkedBackgroundColor),
    disabledCheckedBackgroundColor: Color =
        checkedBackgroundColor.copy(alpha = ContentAlpha.disabled),
    disabledCheckedContentColor: Color = MaterialTheme.colors.background,
    uncheckedBackgroundColor: Color = MaterialTheme.colors.surface,
    uncheckedContentColor: Color = contentColorFor(uncheckedBackgroundColor),
    disabledUncheckedBackgroundColor: Color =
        uncheckedBackgroundColor.copy(alpha = ContentAlpha.disabled),
    disabledUncheckedContentColor: Color =
        uncheckedContentColor.copy(alpha = ContentAlpha.disabled),
): ToggleButtonColors
```

Creates a [ToggleButtonColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ToggleButtonColors) that represents the background and content colors used in a
[ToggleButton](/jetpack-compose/androidx.wear.compose/compose-material/components/ToggleButton). Defaults to primary-styled checked colors and surface-styled unchecked
colors.

#### Parameters

| | |
| --- | --- |
| checkedBackgroundColor | the background color of this [ToggleButton](/jetpack-compose/androidx.wear.compose/compose-material/components/ToggleButton) when enabled and checked |
| checkedContentColor | the content color of this [ToggleButton](/jetpack-compose/androidx.wear.compose/compose-material/components/ToggleButton) when enabled and checked |
| disabledCheckedBackgroundColor | the background color of this [ToggleButton](/jetpack-compose/androidx.wear.compose/compose-material/components/ToggleButton) when checked and not enabled |
| disabledCheckedContentColor | the content color of this [ToggleButton](/jetpack-compose/androidx.wear.compose/compose-material/components/ToggleButton) when checked and not enabled |
| uncheckedBackgroundColor | the background color of this [ToggleButton](/jetpack-compose/androidx.wear.compose/compose-material/components/ToggleButton) when enabled and unchecked |
| uncheckedContentColor | the content color of this [ToggleButton](/jetpack-compose/androidx.wear.compose/compose-material/components/ToggleButton) when enabled and unchecked |
| disabledUncheckedBackgroundColor | the background color of this [ToggleButton](/jetpack-compose/androidx.wear.compose/compose-material/components/ToggleButton) when unchecked and not enabled |
| disabledUncheckedContentColor | the content color of this [ToggleButton](/jetpack-compose/androidx.wear.compose/compose-material/components/ToggleButton) when unchecked and not enabled |