component-patterns

Official

Patterned React components with Ark UI.

AuthorTasty-Maker-Studio
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill clarifies when and how to design React components, wrap Ark UI primitives, and define TypeScript types for variants to ensure consistent, maintainable UI code across a design system.

Core Features & Use Cases

  • Standard Component Structure: Guidelines for organizing components into src/components/, including TSX, stories, and index.ts barrels.
  • Component Template: Practical example of a Button.tsx wrapper around Ark UI with forwardRef and className composition.
  • Barrel Export Pattern: Encourages central exports for easy imports across the codebase.
  • Ark UI Component Patterns: Demonstrates Simple components (Button) and Compound components (Dialog) with usage patterns.
  • TypeScript Patterns: Shows how to define variant props, polymorphic as props, and ref forwarding for flexible components.

Quick Start

Create a new Button component at src/components/Button/Button.tsx that forwards a ref to Ark's Button, applies your button recipe class, and export it via a barrel in src/components/Button/index.ts. Add a Storybook story to document variants.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: component-patterns
Download link: https://github.com/Tasty-Maker-Studio/Discourser-Design-System/archive/main.zip#component-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository