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
on Click
The callback when the Button is clicked.
modifier
The modifier to be applied to the Button.
enabled
Whether the Button is enabled.
corner Radius
The corner radius of the Button.
min Width
The minimum width of the Button.
min Height
The minimum height of the Button.
colors
The ButtonColors of the Button.
inside Margin
The margin inside the Button.
interaction Source
The MutableInteractionSource to be used for the Button.
indication
The Indication to be used for the Button.
content
The Composable content of the Button.