
React Component Generator
This generates production-ready React components with TypeScript interfaces, proper accessibility attributes, and modern patterns baked in. You get templates for client components with hooks and state, server components with async data fetching, and form components with React Hook Form and Zod validation. It includes the boilerplate most developers copy between projects anyway: variant systems, size props, loading states, and ARIA attributes for screen readers. The accessibility checklist alone saves you from forgetting keyboard navigation or error announcements. Use it when you're scaffolding new components or want consistent patterns across your codebase without writing the same setup code every time.
- skills.sh installs
- 332
- GitHub stars
- 422
- last updated
- Aug 21, 2026
Install
$ npx -y skills add onewave-ai/claude-skills --skill react-component-generator --agent claude-codeInstalls into .claude/skills of the current project.
Files
React Component Generator
Instructions
When creating React components:
- Determine component type: Client or Server component
- Define props interface with TypeScript
- Implement with best practices
- Add accessibility attributes
Templates
Client Component
'use client';
import { useState, useCallback } from 'react';
import { cn } from '@/lib/utils';
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
variant?: 'primary' | 'secondary' | 'ghost';
size?: 'sm' | 'md' | 'lg';
isLoading?: boolean;
children: React.ReactNode;
}
export function Button({
variant = 'primary',
size = 'md',
isLoading = false,
children,
className,
disabled,
...props
}: ButtonProps) {
const baseStyles = 'inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2';
const variants = {
primary: 'bg-blue-600 text-white hover:bg-blue-700',
secondary: 'bg-gray-200 text-gray-900 hover:bg-gray-300',
ghost: 'hover:bg-gray-100',
};
const sizes = {
sm: 'h-8 px-3 text-sm',
md: 'h-10 px-4',
lg: 'h-12 px-6 text-lg',
};
Sponsors
Details
- Repository
- github.com/onewave-ai/claude-skills
- Categories
- Frontend Development, Code Review & Quality, Automation & Workflows, Design & UI/UX
- First seen
- Jun 3, 2026
More from onewave-ai/claude-skills
All 108- Sms Text Optimizer332
- Utm Parameter Generator332
- Deal Review Framework331
- Skill Composer Studio330
- Champion Identifier328
- Performance Profiler327
- Intent Signal Aggregator326
- Team Chemistry Evaluator326
- Practice Plan Creator325
- Deal Momentum Analyzer324
- Mvp Case Builder324
- Quota Setting Calculator324
- Scouting Report Builder324
- Sports Trivia Builder324
- Bracket Predictor323
- Sales Comp Plan Designer323
- Player Comparison Tool321
- Podcast To Content Suite321
- Weak Signal Synthesizer321
- Webinar To Content Multiplier321
- Athlete Social Media Manager319
- Trash Talk Generator319
- Dependency Auditor318
- Ramping Rep Tracker318