Quick Start
Get React Grab running in your project in under 2 minutes.Make sure you’re in your project root directory (where
next.config.ts or vite.config.ts is located) before running the installation command.Installation
Run the initialization command
Open your terminal and run:The CLI will automatically:
- Detect your framework (Next.js, Vite, TanStack Start, or Webpack)
- Identify your package manager (npm, yarn, pnpm, or bun)
- Install the necessary dependencies
- Configure your project files
Try it out
Open your application in a browser and hover over any UI element. Press:
- ⌘C (Cmd+C) on Mac
- Ctrl+C on Windows/Linux
What Gets Copied?
When you select an element, React Grab copies three pieces of information:- HTML Structure - The rendered HTML with all classes and attributes
- Component Name - The React component that renders this element
- File Location - Exact file path and line number
Connect to MCP (Optional)
For tighter integration with agents that support the Model Context Protocol:Verify Installation
To verify React Grab is working:- Open your browser’s developer console
- Look for the React Grab activation indicator when hovering over elements
- Try pressing ⌘C/Ctrl+C on an element
- Paste somewhere to see the captured context
Troubleshooting
Nothing happens when I press ⌘C/Ctrl+C
- Make sure you’re hovering over an element first
- Check that your development server is running
- Verify React Grab was installed correctly by checking your layout/entry file
The wrong component name is shown
- This can happen with HOCs or wrapper components
- Try selecting a child element for more specific context
Installation failed
If automatic installation fails:- Check you’re in the correct directory (project root)
- Try running with
--forceflag:npx -y grab@latest init --force - See Manual Installation for framework-specific setup
Next Steps
Installation Guide
Learn about manual installation and advanced configuration
Try the Demo
See React Grab in action on the official website
