Skip to content

createButton

createButton(opts): ButtonHandle

Defined in: ui/widgets/button.ts:82

Spawn a clickable button entity composed of Interactable + a $interaction UIController + UIGear state bindings, optionally with a child Text label.

Click comes straight from the interaction layer’s click event (released while still over the button); the handler is gated on Interactable.enabled.

ButtonOptions

ButtonHandle