Button

fun Button(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, cornerRadius: Dp = ButtonDefaults.CornerRadius, minWidth: Dp = ButtonDefaults.MinWidth, minHeight: Dp = ButtonDefaults.MinHeight, colors: ButtonColors = ButtonDefaults.buttonColors(), insideMargin: PaddingValues = ButtonDefaults.InsideMargin, interactionSource: MutableInteractionSource? = null, indication: Indication? = LocalIndication.current, content: @Composable RowScope.() -> Unit)

A Button component with Miuix style.

Parameters

onClick

The callback when the Button is clicked.

modifier

The modifier to be applied to the Button.

enabled

Whether the Button is enabled.

cornerRadius

The corner radius of the Button.

minWidth

The minimum width of the Button.

minHeight

The minimum height of the Button.

colors

The ButtonColors of the Button.

insideMargin

The margin inside the Button.

interactionSource

The MutableInteractionSource to be used for the Button.

indication

The Indication to be used for the Button.

content

The Composable content of the Button.