building-components

Guide building accessible, composable UI components with ARIA and design tokens.

567|82|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/pedronauck/skills --skill building-components-pedronauck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: building-components
Source: https://github.com/pedronauck/skills/tree/main/skills/building-components
Command: npx skills add https://github.com/pedronauck/skills --skill building-components-pedronauck

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to building robust, accessible, and composable UI components, ensuring high-quality user interfaces.

Core Features & Use Cases

  • Component Architecture: Learn best practices for structuring UI components from primitives to templates.
  • Accessibility: Implement ARIA, keyboard navigation, and focus management for inclusive UIs.
  • Composition Patterns: Master techniques like asChild and polymorphism for flexible component design.
  • Design Tokens & Theming: Set up systems for consistent styling and theming.
  • Use Case: When starting a new component library or refactoring existing components to improve accessibility and maintainability.

Quick Start

Review the 'principles.mdx' reference to understand the core values for building components.

Frequently Asked Questions about building-components

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

FAQPage Schema
How do I build accessible UI components with proper ARIA and focus management?

To build accessible UI components, implement ARIA attributes, keyboard navigation, and focus management to ensure inclusive interfaces. This Skill guides structuring components from primitives to templates while maintaining accessibility best practices throughout the component architecture.

What's the best way to structure a scalable component architecture from primitives to templates?

The best way to structure a scalable component architecture is to categorize artifacts from primitives to templates and apply composition patterns like compound components. This approach ensures maintainable and flexible UI component libraries for software engineers.

How do composition patterns like compound components work in React?

Composition patterns like compound components and slots work in React by allowing flexible component design through techniques such as polymorphism and the `asChild` pattern. This enables highly composable and reusable UI elements within your library.

Do I need design tokens to create a maintainable theming system for UI components?

You need design tokens to create a maintainable theming system for UI components because they provide a single source of truth for styling values. Setting up token systems ensures consistent theming across your entire component library architecture.

When should I refactor existing UI components into a composable component library?

You should refactor existing UI components into a composable component library when you need to improve accessibility, maintainability, and scalability. This process involves re-evaluating component architecture and applying modern composition patterns like slots.