Skip to main content
EVENT is a reactive reference to $event — the value produced by the interaction that triggered an action handler. What $event contains depends on which component fired the action:

Usage

EVENT is most useful when you need to capture an interaction value and store it under a different key, or pass it to a server action:
For form controls, the component’s own state key (from name) updates automatically. A separate SetState with EVENT is only needed when you want to write the value somewhere else.

In Templates

In raw template strings, use $event directly:

Import