component-design

Define and implement reusable UI components for React and Vue with TypeScript.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Junior-Frontend-dev/Hi-u-ng --skill component-design-junior-frontend-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-design
Source: https://github.com/Junior-Frontend-dev/Hi-u-ng/tree/main/.claude/skills/implementation/component-design
Command: npx skills add https://github.com/Junior-Frontend-dev/Hi-u-ng --skill component-design-junior-frontend-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design and implementation of consistent, reusable UI components across React and Vue projects using atomic design and composition patterns.

Core Features & Use Cases

  • Atomic Design hierarchy guidance (Atoms, Molecules, Organisms, Templates, Pages) to structure components.
  • Comprehensive patterns: compound components, render props, higher-order components, custom hooks, and slots for flexible composition.
  • Clear templates and guidelines for typing (e.g., TypeScript interfaces) and workflows that scale with design systems.

Quick Start

Create a new component using the provided component-template.tsx as a starting point and adapt its props to your design system.

Frequently Asked Questions about component-design

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

FAQPage Schema
How do I structure reusable UI components using atomic design patterns?

Structure reusable UI components by organizing them into atomic design hierarchies: atoms, molecules, organisms, templates, and pages. This approach establishes predictable, scalable composition across React and Vue projects, ensuring consistency throughout your design system.

What is the best way to implement flexible composition in React and Vue?

Implement flexible composition by applying compound components, render props, higher-order components, and custom hooks. These UI patterns enable predictable, scalable component architecture across React and Vue applications with clear TypeScript interfaces.

Does this component design approach work for both React and Vue design systems?

Yes, this approach supports both React and Vue design systems. It provides guidelines for typing components with TypeScript interfaces and applying composition patterns that scale seamlessly across UI libraries and applications in either framework.

Can I use compound components and render props to build a scalable UI library?

Yes, you can build a scalable UI library using compound components, render props, and custom hooks. These patterns allow flexible composition and clear TypeScript typing, ensuring predictable behavior across reusable components in your design system.

How do I start defining TypeScript interfaces for reusable React components?

Start defining TypeScript interfaces by adapting the provided component-template.tsx file. Modify its props to match your design system requirements, establishing clear typing and documented usage guidelines for consistent component implementation.

Why does my UI component composition break when scaling across different templates?

Composition breaks when components bypass the atomic design hierarchy or lack clear TypeScript interfaces. Enforce structured patterns like compound components and slots to maintain predictable, scalable composition across templates and pages.