In the Skill's Own Terms
Builds reusable UI components across React, Vue, and Svelte using modern composition patterns, CSS-in-JS solutions, and component API design principles. Covers compound components, render props, slots, and framework-specific patterns like React context, Vue composables, and Svelte runes. Applies to component libraries, design systems, and refactoring legacy components.
Emphasizes accessible-by-default components with semantic props, single responsibility, ref forwarding, and controlled versus uncontrolled patterns. Includes concrete implementations for buttons, accordions, selects, and tabs with class-variance-authority, Tailwind CSS, and scoped styling approaches.
What it produces
- Design system components implementing buttons, accordions, selects, tabs, and cards with class-variance-authority and Tailwind CSS.
How It Works
- 01Pick a CSS-in-JS Approach
Choose from Tailwind CSS for rapid prototyping, CSS Modules for scoped styles, styled-components for dynamic React styling, Emotion for SSR-friendly flexibility, or Vanilla Extract for zero-runtime performance.
- 02Design the Component API
Use semantic prop names like isLoading instead of loading, provide sensible defaults, support composition via children, and allow style overrides through className or style props.
- 03Implement framework-specific Patterns
Use React context for compound components, Vue 3 composables with provide and inject, or Svelte 5 runes with $props and $derived for reactive state.