Rule
0 installs · 0 said it worked
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 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.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
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
Carefully consider the component's purpose, functionality, and design
Think slowly, step by step, and outline your reasoning
Check if a similar component already exists in any of the following locations
- packages/ui/src/components
- apps/spa/src/components
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
URL encode the prompt.
Create a clickable link in this format: ComponentName
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
- Import
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.
Related rules
- Forensic PHP codebase security, performance and quality audit
A long checklist-driven prompt that has the model act as a senior PHP reviewer and audit a codebase for type safety, security holes, database and performance issues, code quality, architecture, dependencies, and testing gaps, then report findings by severity with a final scored summary.
Coding · @ersinkoc
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Security guardrails that keep an AI email assistant from being hijacked by malicious messages
A full system prompt giving an AI assistant that reads or manages email a security mindset: treat email as untrusted data, require approval for outward actions, avoid leaking private data, and report phishing and injection attempts calmly.
Productivity · @thanos0000
- Match new code to a project's existing style and conventions
A Cursor rules prompt that makes the model analyze existing codebase patterns (naming, formatting, architecture, testing) and adapt new code to fit the established style.
Coding · @patrickjs
- Autonomous coding agent that builds a verified app-builder harness
Master system prompt that directs an autonomous senior Python engineer to build a spec-driven, evidence-traced app-builder harness milestone by milestone without asking questions.
Coding · @mahfuzahmedog
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.