ui-component-patterns

Provide reusable React UI component patterns with TypeScript and accessibility.

40|9|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/akillness/oh-my-skills --skill ui-component-patterns-akillness
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ui-component-patterns
Source: https://github.com/akillness/oh-my-skills/tree/main/.agent-skills/ui-component-patterns
Command: npx skills add https://github.com/akillness/oh-my-skills --skill ui-component-patterns-akillness

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Designing scalable UI code can lead to duplication and inconsistent patterns across projects. This Skill provides proven patterns and practices to create reusable, composable components that align with design systems.

Core Features & Use Cases

  • Props design guidance: Type-safe interfaces with TypeScript, clear default values, and backwards-compatible props.
  • Composition patterns: Compound components, render props, and polymorphic components to enable flexible UI assembly.
  • Accessibility considerations: Built-in ARIA roles and keyboard navigation patterns to ensure inclusive interfaces.
  • Use Case: Build a component library for a design system and apply patterns to new components with minimal duplication.

Quick Start

Create a small reusable Button component following the patterns in this guide to see how composition, props, and accessibility work together.

Frequently Asked Questions about ui-component-patterns

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

FAQPage Schema
How do I build reusable React components with TypeScript and proper accessibility?

Build reusable React components by applying composition patterns, type-safe TypeScript prop interfaces, and built-in ARIA roles to ensure flexible, accessible, and scalable frontend architectures without code duplication.

What are the best composition patterns for a scalable React component library?

The best composition patterns for a React component library include compound components, render props, and polymorphic components, enabling teams to assemble complex UIs from smaller, composable pieces while maintaining design system consistency.

Can I use these UI component design patterns to maintain backwards-compatible props?

Yes, you can use these UI component patterns to design clear default values and backwards-compatible props, ensuring type-safe interfaces that scale smoothly without breaking existing implementations in your design system.

Why does UI component duplication happen and how do design patterns fix it?

UI component duplication happens when scalable UI code lacks consistent patterns, causing inconsistency across projects. Design patterns fix this by providing proven practices to create composable components aligned with a central design system.

Do I need TypeScript to implement these React UI composition patterns?

TypeScript is required to implement these React UI composition patterns effectively, providing type-safe interfaces and clear default values for props design guidance, ensuring robust and backwards-compatible component architectures.

How do I add keyboard navigation and ARIA roles to a reusable UI component?

Add keyboard navigation and ARIA roles to a reusable UI component by following built-in accessibility considerations provided in the pattern, ensuring inclusive interfaces that meet standards for complex, composable React architectures.