For the complete documentation index, see llms.txt. This page is also available as Markdown.

Trigger widgets

Trigger widgets capture direct user actions, such as clicks, to execute backend logic.

Available trigger widgets

  • Button: Captures clicks to execute function sequences.

Using icons as triggers

The button is the primary widget in this category, but you can also configure icons as triggers. Icons follow identical data binding rules.

Data binding

Drag from a function or modifier onto the button. The selected slot determines the behavior:

  • Button to function trigger: A click executes the connected function. The trigger transmits no data. This is the primary direction for trigger widgets.

  • Function output or modifier to widget: A function output or modifier writes back into a button property. For example, link an output to the done property of a button to display a loading animation until that segment of the flow finishes.

The button features a single onClick event, so the selection happens automatically when linking a trigger. See Widgets for the full mechanics.

Auto-triggering on input

To execute a function automatically from user interface input instead of a click, wire the input of the function to its own trigger. The incoming data feeds and executes the function without requiring a button widget.

Last updated

Was this helpful?