
from symfony-ux-skills141
Guides using Stimulus JS with Symfony UX: wiring controllers via data-attributes, values, targets, actions, lazy loading, outlets, and integration patterns for
This skill documents how to use the Stimulus JS framework within Symfony UX to attach client-side behavior to server-rendered HTML via data-* attributes. It covers controller skeletons, targets, values, actions, class management, outlets for cross-controller comms, lazy loading, and Symfony/Twig integration patterns.
Use this skill when implementing interactive UI elements in Symfony applications: click handlers, modals, dropdowns, form handling, keyboard shortcuts, lazy-loaded charts/editors, and wrapping JS libraries with controllers. Avoid for pure server-side partial updates (use Turbo or LiveComponent instead).
references/api.md, references/patterns.md, references/gotchas.md for deeper guidanceUseful for code-assistant agents that can edit frontend assets and templates (Copilot/Codex/Gemini).
This skill has not been reviewed by our automated audit pipeline yet.