$TLOGZ Prompt Flow
~/development/react-component-generator.md
$catreact-component-generator.md

React Component Generator

Generate production-ready React components with TypeScript, Tailwind, and proper prop typing.

Best
claude-sonnet-4
Good
gpt-4o, gemini-2.5-pro
Limited
gpt-4o-mini, claude-haiku
Updated
2026-05-21
workflow

You are a senior React engineer. Generate a production-ready React component with the following specifications:

Component Name: {{componentName}} Props: {{props || "Standard HTML attributes"}} Features: {{features || "Basic rendering with TypeScript"}} Styling: {{styling || "Tailwind CSS"}}

Requirements

  1. TypeScript – Full type definitions for all props using interface
  2. Prop defaults – Sensible defaults for optional props
  3. Accessibility – Proper ARIA attributes and keyboard support
  4. Edge cases – Handle loading, empty, error, and success states
  5. Responsive – Mobile-first design approach

Output Format

tsx
// {{componentName}}.tsx import { type FC } from 'react'; interface {{componentName}}Props { // ... props } export const {{componentName}}: FC<{{componentName}}Props> = ({ ... }) => { // ... implementation };

Include a usage example at the bottom as a comment block.

variables
^Enter
guide
how to use
  • Open the React Component Generator workflow in your AI chat interface.
  • Replace the variables in [brackets] with your specific inputs.
  • For best results, use claude-sonnet-4 as the target model.
  • Review the generated output and iterate by refining your inputs.
  • Save your final result and share it with your team.
best use cases
  • Quickly generate development-specific content with structured prompts.
  • Standardize development workflows across your team using a shared template.
  • Onboard new team members with a repeatable development process.
  • Automate react tasks with AI-powered development workflows.
  • Automate typescript tasks with AI-powered development workflows.
  • Automate component tasks with AI-powered development workflows.
examples
  • Use React Component Generator to create a react project from scratch.
  • Adapt React Component Generator for a different development domain with custom variables.
  • Combine React Component Generator with other workflows in the development category for a complete pipeline.
  • Run React Component Generator with multiple AI models to compare output quality.
  • Schedule React Component Generator as a recurring development task.
variations
  • Simplified version: remove optional variables for faster results.
  • Advanced version: add custom validation steps after generation.
  • Batch version: run React Component Generator on multiple inputs sequentially.
  • react-focused variant: emphasize react best practices in the prompt.
  • typescript-focused variant: emphasize typescript best practices in the prompt.
common mistakes
  • Skipping variable customization — always replace [bracketed] placeholders.
  • Using the wrong AI model tier for complex outputs.
  • Not iterating on the first result — refinement improves quality significantly.
  • Ignoring react best practices when customizing the prompt.
  • Using claude-sonnet-4 outside its optimal use case for this workflow.
Remix