Styled

data class Styled(val text: StyledString, val style: KalugaButtonStyle, val isEnabled: Boolean = true, val action: () -> Unit) : KalugaButton

A KalugaButton that displays a StyledString

Parameters

style

the KalugaButtonStyle of the button

isEnabled

if true the button can be interacted with

action

function to execute when the button is pressed

Constructors

Link copied to clipboard
constructor(text: StyledString, style: KalugaButtonStyle, isEnabled: Boolean = true, action: () -> Unit)

Properties

Link copied to clipboard
open override val action: () -> Unit
Link copied to clipboard
open override val isEnabled: Boolean = true
Link copied to clipboard
open override val style: KalugaButtonStyle
Link copied to clipboard

the StyledString to display on the button