Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules for generating React components with v0 and project conventions

Cursor rule file that guides the assistant to check for existing React components, draft a detailed component prompt for v0.dev, and adapt the generated component to the project's package structure and patterns.

People use this for

  • react component cursor rules
  • v0 react component prompt
  • cursor ai react component generation
  • generate react component with tailwind
  • react component v0 dev workflow
Name
cursor-rules-for-generating-react-components-with-v0-and-project
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-for-generating-react-components-with-v0-and-project-convent-mh26/export/mdc" -o .cursor/rules/cursor-rules-for-generating-react-components-with-v0-and-project.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-for-generating-react-components-with-v0-and-project.mdc
Manual install

Save cursor-rules-for-generating-react-components-with-v0-and-project.mdc as .cursor/rules/cursor-rules-for-generating-react-components-with-v0-and-project.mdc for this project or ~/.cursor/rules/cursor-rules-for-generating-react-components-with-v0-and-project.mdc for every project, then start a new session.

Rule


description: "Cursor rules for React component creation and development." globs: */ alwaysApply: false

Cursor Rules

Whenever you need a React component

  1. Carefully consider the component's purpose, functionality, and design

  2. Think slowly, step by step, and outline your reasoning

  3. Check if a similar component already exists in any of the following locations

    1. packages/ui/src/components
    2. apps/spa/src/components
  4. If it doesn't exist, generate a detailed prompt for the component, including:

    • Component name and purpose
    • Desired props and their types
    • Any specific styling or behavior requirements
    • Mention of using Tailwind CSS for styling
    • Request for TypeScript usage
  5. URL encode the prompt.

  6. Create a clickable link in this format: ComponentName

  7. After generating, adapt the component to fit our project structure:

    • Import
      • common shadcn/ui components from <ui_package_alias>@repo/ui/components/ui/</ui_package_alias>
      • app specific components from <app_package_alias>@/components</app_package_alias>
    • Ensure it follows our existing component patterns
    • Add any necessary custom logic or state management

Example prompt template: "Create a React component named {ComponentName} using TypeScript and Tailwind CSS. It should {description of functionality}. Props should include {list of props with types}. The component should {any specific styling or behavior notes}. Please provide the full component code."

Remember to replace placeholders like <ui_package_path> and <app_package_alias> with the actual values used in your project.

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.