Button

fun UiScope.Button(label: UiText, width: Int = 150, enabled: Boolean = true, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Emits one fixed-height profile-backed pointer button.

Reusable actions are supplied through pointer modifiers, so the component owns only appearance, sizing, and semantics.

Receiver

active owner-thread screen scope.

Parameters

label

unresolved button label.

width

requested logical width.

enabled

whether enabled appearance and semantics are used.

modifier

active behavior including pointer actions.

key

optional stable sibling identity.

Throws

when the label does not fit or width is incompatible with the profile.

when no runtime screen evaluation is active.


fun UiScope.Button(label: String, width: Int = 150, enabled: Boolean = true, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Emits one literal fixed-height profile-backed pointer button.

Receiver

active owner-thread screen scope.

Parameters

label

literal converted to UiText.Literal.

width

requested logical width.

enabled

whether enabled appearance and semantics are used.

modifier

active behavior including pointer actions.

key

optional stable sibling identity.

Throws

when the label does not fit or width is incompatible with the profile.

when no runtime screen evaluation is active.