Component Architecture Patterns

Provide React architecture patterns for compound, headless, slot, and polymorphic components.

1|3|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/yogi100x/acceleration-council --skill component-architecture-patterns-yogi100x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Component Architecture Patterns
Source: https://github.com/yogi100x/acceleration-council/tree/main/tech/ui/component-architecture
Command: npx skills add https://github.com/yogi100x/acceleration-council --skill component-architecture-patterns-yogi100x

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Architectures and teams struggle to build scalable, reusable UI by duplicating component logic across many places. This skill provides proven React patterns to compose components more flexibly and with less boilerplate.

Core Features & Use Cases

  • Compound components, slots, and headless patterns to compose robust UI libraries.
  • Guidance on polymorphism, accessibility, and type-safe state management across complex components.
  • Use Case: Create a Tabs component with Tabs.Trigger and Tabs.Content while keeping a clean, ergonomic API.

Quick Start

Install the component-architecture patterns skill and begin exploring the provided examples to start building scalable UI libraries.

Frequently Asked Questions about Component Architecture Patterns

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

FAQPage Schema
How do I build reusable React components with a clean API for complex UI libraries?

To build reusable React components with a clean API, apply architecture patterns like compound components, headless hooks, and slots to compose robust UI libraries with less boilerplate and flexible state management.

What is the best way to implement type-safe polymorphic components in React?

Type-safe polymorphic components in React are best implemented using established component architecture patterns that provide guidance on polymorphism and state management to ensure flexibility without sacrificing type safety.

How do compound components work in React design systems?

Compound components in React design systems work by allowing related UI pieces, such as Tabs.Trigger and Tabs.Content, to share implicit state while keeping the parent component's API clean and ergonomic.

When should I use headless patterns for React component development?

You should use headless patterns for React component development when you need to separate complex state management and accessibility logic from the visual rendering, allowing teams to apply custom styling to robust UI libraries.

Does this React component architecture approach handle accessibility and state management?

Yes, this React component architecture approach handles accessibility and state management by providing specific guidelines for building headless hooks and polymorphic components across multiple states.

What are the limitations of using slots in React component patterns?

While slots in React component patterns provide flexible composition for design systems, they require careful type safety management to ensure that injected content correctly aligns with the parent component's expected state and structure.