web-component-design
Installation
SKILL.md
Web Component Design
Build reusable, maintainable UI components using modern frameworks with clean composition patterns and styling approaches.
When to Use This Skill
- Designing reusable component libraries or design systems
- Implementing complex composition patterns (Compound Comps, Slots, Render Props)
- Choosing CSS-in-JS solutions (Tailwind, Styled Components)
- Building accessible, responsive UI
- Refactoring legacy components
Workflow
- Define API: Design the Props interface (semantic naming, defaults).
- Choose Strategy: Compound component vs Monolithic configuration?
- Implement: Build structure, styles (CVA), and behavior.
- Refine: Add Accessibility (ARIA) and Forward Refs.