Text Button
A TextButton component with COUI style.
Parameters
The text of the TextButton.
The callback when the TextButton is clicked.
The modifier to be applied to the TextButton.
Whether the TextButton is enabled.
Whether the TextButton shrinks while pressed (COUIButton scaleEnable). Set to false for buttons that fill a container cell, such as the alert dialog button bar, leaving the full-cell press tint as the only feedback.
The corner radius of the TextButton.
The minimum width of the TextButton.
The minimum height of the TextButton.
The TextButtonColors of the TextButton.
The margin inside the TextButton.
The TextStyle of the label. Pass a 14sp style together with the Small metrics from ButtonDefaults to get the COUI small size tier.
The MutableInteractionSource to be used for the TextButton.
The Indication to be used for the TextButton. Defaults to null because the COUI press feedback (scale + press tint) is built into the button itself.