ButtonState

constructor(text: String, textColor: Color = Color.Unspecified, enabled: Boolean = true, style: ButtonStyle = ButtonStyle.OUTLINED, colorStyle: ColorStyle = ColorStyle.DEFAULT)

Parameters

text

The text to display within.

textColor

The color for the text to be used

enabled

Controls the enabled state of the button. When false, this button will not be clickable and will appear disabled to accessibility services.

style

Controls style of the button. Will be OUTLINED by default, but can be FILLED, TEXT, TONAL, ELEVATED or KEYBOARDKEY.

colorStyle

the button color style to be used, can be ColorStyle.DEFAULT or ColorStyle.ERROR.