<div class='type'>Composable Component</div>



Wear Material3 `EdgeButton` that offers a single slot to take any content.

<a id='references'></a>



<h2 id="edgebutton-onclick-modifier-buttonsize-enabled-colors-border-interactionsource-content">EdgeButton</h2>

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


```kotlin
@Composable
public fun EdgeButton(
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    buttonSize: EdgeButtonSize = EdgeButtonSize.Small,
    enabled: Boolean = true,
    colors: ButtonColors = ButtonDefaults.buttonColors(),
    border: BorderStroke? = null,
    interactionSource: MutableInteractionSource? = null,
    content: @Composable RowScope.() -> Unit,
)
```


#### Parameters

| | |
| --- | --- |
| onClick | Will be called when the user clicks the button |
| modifier | Modifier to be applied to the button. When animating the button to appear/ disappear from the screen, a Modifier.height can be used to change the height of the component, but that won't change the space available for the content (though it may be scaled) |
| buttonSize | Defines the size of the button. See `EdgeButtonSize`. |
| enabled | Controls the enabled state of the button. When `false`, this button will not be clickable |
| colors | `ButtonColors` that will be used to resolve the background and content color for this button in different states. See `ButtonDefaults.buttonColors`. |
| border | Optional `BorderStroke` that will be used to resolve the border for this button in different states. |
| interactionSource | an optional hoisted `MutableInteractionSource` for observing and emitting `Interaction`s for this button. You can use this to change the button's appearance or preview the button in different states. Note that if `null` is provided, interactions will still happen internally. |
| content | Slot for composable body content displayed on the Button. Either an Icon or Text. Note that when using an Icon is recommended to remove any extra spacing the icon may have, either processing the image or using something like the list sample. |