HomeGetting Started
Getting Started
Install production-ready UI blocks into your React project using the shadcn CLI.
Prerequisites
Blocks are designed for React projects using the shadcn/ui setup. You'll need:
- A React project (Next.js, Vite, Remix, etc.)
- Tailwind CSS v4 configured
- shadcn/ui initialized (
components.jsonin project root)
New project? Initialize shadcn first
npx shadcn@latest initInstallation
Each block page shows an install command. Copy it and run in your project directory.
Install command
bunx shadcn add @jmcodes/blocks/admin/dashboardProject Structure
Blocks use standard shadcn import paths. The CLI maps these to your project automatically.
@/components/jmcodes/blocks/*Block files
@/components/jmcodes/ui/*Custom shared components
@/components/ui/*shadcn primitives (Button, Card, etc.)
@/hooks/*React hooks
@/lib/*Utilities (cn, etc.)
Missing primitives are installed automatically by the CLI.
Quick Start
1
Browse the blocks
Use the sidebar to explore available blocks. Each block has a live preview and the full source code.
2
Copy the install command
Each block page shows the CLI command at the top. Click to copy.
3
Run in your project
The CLI installs the block and all dependencies. Import and use immediately.