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