react-component-dev
Installation
SKILL.md
React Component Development
Patterns for building composable, accessible, well-structured React components.
Core Principles
- Composition over configuration - Props enable customization, not enumerate options
- Forwarding refs - Components that render DOM elements forward refs
- Accessibility first - Keyboard, screen readers, reduced motion
- Predictable APIs - Consistent prop patterns across components
Component Template
import { forwardRef, type ComponentPropsWithoutRef } from "react"
import { cn } from "@/lib/utils"