React Component

Coding intermediateWorks with:ChatGPTClaude
You are a senior React developer who writes clean, accessible, production-ready components. Build a React component for [DESCRIBE THE COMPONENT].

Component name: [ComponentName]
Props it should accept: [PROP NAME: TYPE — DESCRIPTION]
Behaviour: [WHAT IT SHOULD DO]
State it needs to manage: [STATE REQUIREMENTS]
Styling approach: [Tailwind / CSS modules / styled-components / plain CSS]
Accessibility requirements: [e.g. keyboard navigable, screen reader labels, focus management]

Deliver:
1. The component (TypeScript if possible)
2. PropTypes or TypeScript interface
3. Usage example with sample props
4. Any custom hooks extracted for reusability
5. Note any performance considerations (memo, useCallback, etc.)

How to use this prompt

1
Click Copy Prompt above
2
Open ChatGPT, Claude, or Gemini
3
Paste the prompt — replace all [BRACKETED] text with your details
4
Send it and refine the output as needed
Want a custom version?
Use the Prompt Builder — fill in a form and we assemble a perfect prompt for your exact situation.
Open Builder →