Shadcn IDE Extension
Browse, search, and install blocks directly from your IDE with the Shadcnblocks extension.
The Shadcnblocks extension lets you browse, search, and install blocks without leaving your editor. Open the sidebar, find the block you need, and add it to your project with a single click.
Supported IDEs
The extension works with any IDE that supports VS Code extensions:
| IDE | Install Link |
|---|---|
| VS Code | Install in VS Code |
| Cursor | Install in Cursor |
| Windsurf | Install in Windsurf |
| TRAE Code | Install in TRAE Code |
| Antigravity | Install in Antigravity |
Key Features
- Search & Filter - Quickly find blocks by name, category, or keyword
- One-Click Install - Add any block to your project with a single click using the shadcn CLI
- Source Code Preview - View the full source code of any block before installing
- Favorites - Save blocks you use frequently for quick access
- Auto-Updates - The extension stays up to date with the latest blocks automatically
Quick Start
- Install the extension - Search for “Shadcnblocks” in your IDE’s extension panel, or use an install link above.
- Open the block browser - Click the Shadcnblocks icon in the activity bar.
- Browse or search - Find blocks by name, keyword, or category. Preview source code before installing.
- Install a block - Click the install button to add it via the shadcn CLI. Free blocks work out of the box.
Pro Blocks & API Key Setup
Pro blocks require an API key. Follow these steps to unlock premium blocks:
- Get a Pro license - Purchase at shadcnblocks.com/pricing to receive your API key.
- Copy your API key - Find it in your dashboard. It starts with
sk_live_. - Add the API key to the extension - Open your IDE settings, search for
shadcnblocks.apiKey, and paste your key. - Configure components.json - Add the shadcnblocks registry to your project’s
components.json:{ "registries": { "@shadcnblocks": { "url": "https://shadcnblocks.com/r/{name}", "headers": { "Authorization": "Bearer ${SHADCNBLOCKS_API_KEY}" } } } }
For more details on CLI setup, see the shadcn CLI guide.
Video Demos
Visit the extension page for interactive video demos of all features in action.
Next Steps
- Browse blocks - See all available blocks
- shadcn CLI - Set up API authentication for pro blocks
- Extension page - See the extension in action