TextButton

fun TextButton(text: String, onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, cornerRadius: Dp = ButtonDefaults.CornerRadius, minWidth: Dp = ButtonDefaults.MinWidth, minHeight: Dp = ButtonDefaults.MinHeight, colors: TextButtonColors = ButtonDefaults.textButtonColors(), insideMargin: PaddingValues = ButtonDefaults.InsideMargin, interactionSource: MutableInteractionSource? = null, indication: Indication? = LocalIndication.current)

A TextButton component with Miuix style.

Parameters

text

The text of the TextButton.

onClick

The callback when the TextButton is clicked.

modifier

The modifier to be applied to the TextButton.

enabled

Whether the TextButton is enabled.

cornerRadius

The corner radius of the TextButton.

minWidth

The minimum width of the TextButton.

minHeight

The minimum height of the TextButton.

colors
insideMargin

The margin inside the TextButton.

interactionSource

The MutableInteractionSource to be used for the TextButton.

indication

The Indication to be used for the TextButton.