twig-component

Community

Build reusable UI components for Symfony UX

Authorsmnandre
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Symfony UX TwigComponent enables building reusable UI blocks that can be composed and shared across templates, reducing duplication and maintenance.

Core Features & Use Cases

  • Class-based components with PHP backing and Twig templates for logic-heavy widgets.
  • Anonymous Twig components for simple presentational blocks that require no PHP.
  • Props, blocks/slots, computed properties, and dynamic attributes for flexible design.
  • Suitable for building design-system components like cards, buttons, modals, forms, and dashboards.

Quick Start

Create a small reusable Button TwigComponent and render it in a page to verify the workflow.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: twig-component
Download link: https://github.com/smnandre/symfony-ux-skills/archive/main.zip#twig-component

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.