symfony-ux-live-component

Build reactive Symfony UI components with LiveComponent traits and Twig rendering.

1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/woweya/Symfony-UX-LiveComponent-Skill --skill symfony-ux-live-component
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: symfony-ux-live-component
Source: https://github.com/woweya/Symfony-UX-LiveComponent-Skill/tree/main/skills/symfony-ux-live-component
Command: npx skills add https://github.com/woweya/Symfony-UX-LiveComponent-Skill --skill symfony-ux-live-component

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LiveComponent enables building dynamic, reactive Symfony UIs without writing custom JavaScript; components automatically re-render via AJAX when their state changes, keeping the UI in sync with server state.

Core Features & Use Cases

  • Reactive properties via #[LiveProp] manage component state across renders.
  • Server-side logic exposure via #[LiveAction] triggers server actions and re-renders.
  • Seamless Form integration with real-time validation and dynamic form updates.
  • Lifecycle hooks, polling, deferred loading, and cross-component communication.

Quick Start

Annotate a PHP class with AsLiveComponent, expose properties with LiveProp and actions with LiveAction, and render it in Twig with {{ component('YourComponent') }}.

Frequently Asked Questions about symfony-ux-live-component

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build reactive Symfony UI components without writing JavaScript?

LiveComponent enables building reactive Symfony UIs without writing custom JavaScript; components automatically re-render via AJAX when their state changes, keeping the UI in sync with server state. It uses AsLiveComponent, LiveProp, and LiveAction traits.

How do I expose server-side logic and state in Twig templates?

You expose server-side logic in Twig templates by annotating a PHP class with AsLiveComponent, declaring properties with LiveProp, and exposing actions with LiveAction. Render the component using the Twig component() function to trigger server actions and re-renders.

Can I integrate Symfony forms with LiveComponent for real-time validation?

Yes, Symfony forms integrate with LiveComponent to enable real-time validation and dynamic form updates. This allows server-rendered form components to react to user input and re-render seamlessly without requiring custom JavaScript.

Does LiveComponent support lifecycle hooks, polling, and cross-component communication?

LiveComponent supports lifecycle hooks, polling, deferred loading, and cross-component communication. These features allow server-rendered Symfony components to automatically update their UI state and synchronize with other components dynamically.

What is the best way to manage component state across re-renders in Symfony?

The best way to manage component state across re-renders in Symfony is using the LiveProp attribute. Reactive properties declared with LiveProp maintain their state across AJAX re-renders, ensuring the UI remains in sync with the server state automatically.