# react-grab **Repository Path**: mirrors_trending/react-grab ## Basic Information - **Project Name**: react-grab - **Description**: Grab any element on in your app and give it to Cursor, Claude Code, etc - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-14 - **Last Updated**: 2026-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # React Grab [![version](https://img.shields.io/npm/v/react-grab?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/react-grab) [![downloads](https://img.shields.io/npm/dt/react-grab.svg?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/react-grab) Copy any UI element for your agent. React Grab points agents to the actual source behind each selection, so edits are [**2× faster**](https://benchmark.react-grab.com/) and more accurate. ### [Try out a demo! →](https://react-grab.com) ## Quick Start Run this at your project root: ```bash npx grab@latest init ``` ## How It Works React Grab turns a browser selection into source context your agent can use: 1. Hover any UI element in your app. 2. Press **⌘C** or **Ctrl+C**. 3. Paste the copied context into your agent. The copied context includes the selected element, source location, nearby code, and component stack: ```txt Forgot your password? // components/login-form.tsx:46 45|
> 46| 47| Forgot your password? 48| in LoginForm (at components/login-form.tsx:46:19) ``` ## Manual Installation If you cannot use the CLI, install React Grab manually for your framework: #### Next.js (App router) Add this inside your `app/layout.tsx`: ```jsx import Script from "next/script"; export default function RootLayout({ children }) { return ( {process.env.NODE_ENV === "development" && (