Skip to content

HTML directives ​

Interact directives connect HTML controls and forms to a PHP island. Use them inside an island created by InteractHelper.

DirectiveDescription
x-interact:modelBinds a form input to a PHP island property
x-interact:submitHandles form submission without a page reload
x-interact:pollRefreshes an island at a regular interval
x-interact:ignorePreserves an element and its contents during server updates

Use ordinary Alpine @click, :disabled, x-show, and :class for events and presentation. $server provides access to island state, actions, and request feedback. See Quickstart for setup.