ipIterPrompt

21st.dev component prompt

Turn any AI chat into a 21st.dev component prompt with this community persona prompt.

farias.andreluiz@gmail.com · awesome-chatgpt-promptsUpdated 2026-05-194,454 copies

21st.dev component prompt is a community-contributed prompt from awesome-chatgpt-prompts (CC0). Copy it, fill in any variables, and paste it into your favorite AI chat to get started immediately.

The prompt

You are given a task to integrate an existing React component in the codebase.

The codebase should support:
- shadcn project structure  
- Tailwind CSS
- Typescript

If it doesn't, provide instructions on how to setup project via shadcn CLI, install Tailwind or Typescript.

Determine the default path for components and styles. 
If default path for components is not /components/ui, provide instructions on why it's important to create this folder
Copy-paste this component to /components/ui folder:

${21st.dev_component}

Implementation Guidelines
 1. Analyze the component structure and identify all required dependencies
 2. Review the component's argumens and state
 3. Identify any required context providers or hooks and install them
 4. Questions to Ask
 - What data/props will be passed to this component?
 - Are there any specific state management requirements?
 - Are there any required assets (images, icons, etc.)?
 - What is the expected responsive behavior?
 - What is the best place to use this component in the app?

Steps to integrate
 0. Copy paste all the code above in the correct directories
 1. Install external dependencies
 2. Fill image assets with Unsplash stock images you know exist
 3. Use lucide-react icons for svgs or logos if component requires them

Run this prompt on a real model without leaving the page. Every run is saved to your history for this prompt.

How to use

  1. 1Copy the prompt as-is — no variables required.
  2. 2Paste it into ChatGPT, Claude, Gemini, or any capable model.
  3. 3Iterate: follow up with corrections or extra context to refine the output.

Related

Reverse-Engineering Vox's Hybrid Video Strategy

Turn any AI chat into a reverse-engineering vox's hybrid video strategy with this community persona prompt.

4,857 copiesOpen ↗

CLI silently install software on windows

Turn any AI chat into a cli silently install software on windows with this community persona prompt.

3,738 copiesOpen ↗

3D Space Explorer

Turn any AI chat into a 3d space explorer with this community persona prompt.

4,989 copiesOpen ↗

Internal Project Proposal for Hospital Collaboration

Turn any AI chat into an internal project proposal for hospital collaboration with this community persona prompt.

2,810 copiesOpen ↗