# ButtonBorder

Artifact: [androidx.wear.compose:compose-material](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material/Button.kt+class:androidx.wear.compose.material.ButtonBorder) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.1.0)


```
interface ButtonBorder
```

<br />

*** ** * ** ***

Represents the border stroke used in a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/Button.composable#Button(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material.ButtonColors,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.ui.graphics.Shape,androidx.wear.compose.material.ButtonBorder,kotlin.Function1)` in different states.

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/foundation/BorderStroke?>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ButtonBorder#borderStroke(kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the border stroke for this border, depending on `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ButtonBorder#borderStroke(kotlin.Boolean)` or null if no border |

## Public functions

### borderStroke

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.1.0)

```
@Composable
fun borderStroke(enabled: Boolean): State<BorderStroke?>
```

Represents the border stroke for this border, depending on `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ButtonBorder#borderStroke(kotlin.Boolean)` or null if no border

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the button is enabled |