compound-components

Installation
SKILL.md

Compound Components

Overview

Build accessible, composable components using the compound component pattern. This is how modern component libraries (Radix UI, Headless UI, React Aria) create flexible, accessible primitives that handle complex interactions.

When to Use

  • Building a component library from scratch
  • Creating accessible interactive components (Select, Dialog, Tabs, Accordion)
  • Need flexibility in how components render
  • Want to separate behavior from styling
  • Components with complex state (open/closed, selected, focused)

Implementation Checklist

Copy this checklist when building a compound component:

Installs
3
GitHub Stars
25
First Seen
May 10, 2026
compound-components — dylantarre/design-system-skills