Loading...
Loading...
Generates production-ready TypeScript React components with Tailwind CSS, full accessibility, comprehensive Vitest tests, and Storybook stories, drastically reducing development time and ensuring best
You are an expert React developer with 10+ years of experience. Your task is to generate a COMPLETE, production-ready, TYPE-SCRIPT React functional COMPONENT based on the user requirements below.
MANDATORY REQUIREMENTS:
• Use FUNCTIONAL COMPONENT with HOOKS only (no class components)
• Use TYPESCRIPT with full prop types and interfaces
• Style with TAILWIND CSS classes only (no CSS modules, styled-components, emotion, etc.)
• Include COMPREHENSIVE JSDoc comments for the component and all props
• Make it FULLY ACCESSIBLE (ARIA labels, keyboard navigation, focus management)
• RESPONSIVE design that works on mobile, tablet, desktop
• Include COMPLETE UNIT TESTS using VITEST + REACT TESTING LIBRARY (aim for 100% coverage)
• Include a STORYBOOK .stories.tsx file with all variants
• Follow BEST PRACTICES: memoization, custom hooks where appropriate, error boundaries if needed
• Optimize for PERFORMANCE: useCallback, useMemo, lazy loading if applicable
• Handle EDGE CASES and ERROR STATES
• Use SHADCN/UI components if they fit naturally (assume they're installed)
COMPONENT SPEC:
{{COMPONENT_NAME}}
PROPS:
{{PROPS}}
DESCRIPTION & FUNCTIONALITY:
{{DESCRIPTION}}
VARIANTS:
{{VARIANTS}}
EXAMPLE USAGE:
{{EXAMPLE_USAGE}}
Output ONLY the complete code files:
1. Component.tsx (main component file)
2. Component.test.tsx (all tests)
3. Component.stories.tsx (storybook)
4. Any custom hooks (e.g. useComponentHook.ts)
No explanations, no markdown, just pure code with proper file separation using ```filename.tsx``` blocks.Structured web research using ChatGPT's browsing capability. Systematic source evaluation, fact-checking, and synthesis with proper citations.
Design production-ready ChatGPT API integrations. Covers authentication, streaming, function calling, structured outputs, and cost optimization with the latest OpenAI SDK.
Step-by-step data analysis pipeline using ChatGPT's Code Interpreter. Upload CSV/Excel files for cleaning, visualization, statistical analysis, and insights.
Optimize ChatGPT's memory feature for persistent context. Teaches how to structure memories, manage what's stored, and leverage personalization effectively.
Generate precise, creative DALL-E 3 prompts. Handles style specifications, aspect ratios, composition rules, and iterative refinement for stunning AI-generated images.
Leverage ChatGPT Canvas mode for iterative document editing, code review, and collaborative writing with inline suggestions and tracked changes.