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

```kotlin
public object ButtonDefaults
```

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

## Functions

<h2 id="primarybuttoncolors-backgroundcolor-contentcolor">primaryButtonColors</h2>

```kotlin
@Composable
public fun primaryButtonColors(
    backgroundColor: Color = MaterialTheme.colors.primary,
    contentColor: Color = contentColorFor(backgroundColor),
): ButtonColors
```

Creates a [ButtonColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ButtonColors) that represents the default background and content colors for a
primary [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button). Primary buttons have a colored background with a contrasting content color.
If a button is disabled then the colors will have an alpha ([ContentAlpha.disabled](/jetpack-compose/androidx.wear.compose/compose-material/objects/ContentAlpha)) value
applied.

#### Parameters

| | |
| --- | --- |
| backgroundColor | The background color of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when enabled |
| contentColor | The content color of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when enabled |

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

<h2 id="secondarybuttoncolors-backgroundcolor-contentcolor">secondaryButtonColors</h2>

```kotlin
@Composable
public fun secondaryButtonColors(
    backgroundColor: Color = MaterialTheme.colors.surface,
    contentColor: Color = contentColorFor(backgroundColor),
): ButtonColors
```

Creates a [ButtonColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ButtonColors) that represents the default background and content colors for a
secondary [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button). Secondary buttons have a muted background with a contrasting content
color. If a button is disabled then the colors will have an alpha ([ContentAlpha.disabled](/jetpack-compose/androidx.wear.compose/compose-material/objects/ContentAlpha))
value applied.

#### Parameters

| | |
| --- | --- |
| backgroundColor | The background color of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when enabled |
| contentColor | The content color of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when enabled |

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

<h2 id="iconbuttoncolors-contentcolor">iconButtonColors</h2>

```kotlin
@Composable
public fun iconButtonColors(
    contentColor: Color = MaterialTheme.colors.onSurface
): ButtonColors
```

Creates a [ButtonColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ButtonColors) that represents the content colors for an icon-only [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button). If a
button is disabled then the colors will have an alpha ([ContentAlpha.disabled](/jetpack-compose/androidx.wear.compose/compose-material/objects/ContentAlpha)) value
applied.

#### Parameters

| | |
| --- | --- |
| contentColor | The content color of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when enabled |

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

<h2 id="outlinedbuttoncolors-contentcolor">outlinedButtonColors</h2>

```kotlin
@Composable
public fun outlinedButtonColors(
    contentColor: Color = MaterialTheme.colors.primary
): ButtonColors
```

Creates a [ButtonColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ButtonColors) that represents the content colors for an [OutlinedButton](/jetpack-compose/androidx.wear.compose/compose-material/components/OutlinedButton). If a
button is disabled then the colors will have an alpha ([ContentAlpha.disabled](/jetpack-compose/androidx.wear.compose/compose-material/objects/ContentAlpha)) value
applied.

#### Parameters

| | |
| --- | --- |
| contentColor | The content color of this [OutlinedButton](/jetpack-compose/androidx.wear.compose/compose-material/components/OutlinedButton) when enabled |

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

<h2 id="buttonborder-borderstroke-disabledborderstroke">buttonBorder</h2>

```kotlin
@Composable
public fun buttonBorder(
    borderStroke: BorderStroke? = null,
    disabledBorderStroke: BorderStroke? = borderStroke,
): ButtonBorder
```

Creates a [ButtonBorder](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ButtonBorder) for the default border used in most [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button)

#### Parameters

| | |
| --- | --- |
| borderStroke | The border of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when enabled - or no border if null |
| disabledBorderStroke | The border of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when disabled - or no border if null |

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

<h2 id="outlinedbuttonborder-bordercolor-disabledbordercolor-borderwidth">outlinedButtonBorder</h2>

```kotlin
@Composable
public fun outlinedButtonBorder(
    borderColor: Color = MaterialTheme.colors.primaryVariant.copy(alpha = 0.6f),
    disabledBorderColor: Color = borderColor.copy(alpha = ContentAlpha.disabled),
    borderWidth: Dp = 1.dp,
): ButtonBorder
```

Creates a [ButtonBorder](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ButtonBorder) for the [OutlinedButton](/jetpack-compose/androidx.wear.compose/compose-material/components/OutlinedButton)

#### Parameters

| | |
| --- | --- |
| borderColor | The color to use for the border for this [OutlinedButton](/jetpack-compose/androidx.wear.compose/compose-material/components/OutlinedButton) when enabled |
| disabledBorderColor | The color to use for the border for this [OutlinedButton](/jetpack-compose/androidx.wear.compose/compose-material/components/OutlinedButton) when disabled |
| borderWidth | The width to use for the border for this [OutlinedButton](/jetpack-compose/androidx.wear.compose/compose-material/components/OutlinedButton) |

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

<h2 id="buttoncolors-backgroundcolor-contentcolor-disabledbackgroundcolor-disabledcontentcolor">buttonColors</h2>

```kotlin
@Composable
public fun buttonColors(
    backgroundColor: Color = MaterialTheme.colors.primary,
    contentColor: Color = contentColorFor(backgroundColor),
    disabledBackgroundColor: Color = backgroundColor.copy(alpha = ContentAlpha.disabled),
    disabledContentColor: Color = contentColor.copy(alpha = ContentAlpha.disabled),
): ButtonColors
```

Creates a [ButtonColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/ButtonColors) that represents the default background and content colors used in a
[Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button).

#### Parameters

| | |
| --- | --- |
| backgroundColor | the background color of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when enabled |
| contentColor | the content color of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when enabled |
| disabledBackgroundColor | the background color of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when not enabled |
| disabledContentColor | the content color of this [Button](/jetpack-compose/androidx.wear.compose/compose-material/components/Button) when not enabled |