Documentation
Blocks & Components
Copy free components and install pro blocks with the shadcn CLI.
Components vs blocks
| Components | Blocks | |
|---|---|---|
| What | Small, focused examples: buttons, inputs, tables, charts, dialogs | Larger dashboard sections: stat card rows, pipelines, task tables, modals |
| Where | /components | /blocks |
| Price | Free | Free and Pro (Pro needs the Pro or Pro Team plan) |
| Code | React and Vue | React, Vue and Svelte |
Use a component
Find it
Browse the Components page by category and open one. Each example renders live in a preview window; use the moon icon to check it in dark mode and the expand icon to open it full screen.
Copy the code
Click Get the Code, choose the React or Vue tab and copy the source.
Paste it into your project
Create a file in your components folder and paste the code. Make sure the shadcn primitives it imports (for example
@/components/ui/button) exist in your project; add any missing ones with the CLI (see Add UI components).
Use a pro block
Blocks marked Pro unlock with the Pro or Pro Team plan. Sign in with the account that owns the plan, open Blocks and click Get the Code: instead of the lock screen you see the full source. From there it works exactly like a component.
- Use the device buttons in the preview bar to check the block on desktop, tablet and mobile.
- Open a block in a new tab to inspect it in isolation.
- Pick a category on the Blocks page, then filter it by Free or Pro.
Not seeing the code?
Install with the shadcn CLI
Every block is also a registry item for each framework's CLI: shadcn for React, shadcn-vue for Vue and shadcn-svelte for Svelte. The CLI copies the block into your components folder and installs the components and npm packages it imports.
Free blocks
Free blocks install with a URL, no account or setup needed:
Loading...
Pro blocks
Pro blocks install only with a license key that belongs to a Pro or Pro Team plan. Each key is one project: Pro covers 1 project, Pro Team covers unlimited projects. Create a key on License Keys in your account and name it after your project. That page also shows these snippets with your key filled in.
Add the registry to components.json
Add the
@shadcnadminregistry to theregistriesfield of your project'scomponents.json:components.jsonLoading...
Set your license key
Put the key in
.envor.env.local(keep it out of git). The CLI reads it from there..envLoading...
Install blocks by name
Use the block name shown under Get the Code on Blocks. Free blocks work through the same registry.
bashLoading...
Getting a 401 or 403?
SHADCNADMIN_LICENSE_KEY is set (or the token in the Svelte URL) and copied in full. A 403 means the key is valid but can't install Pro blocks: the plan doesn't include them, or the key is marked Inactive because your plan's project limit is used by an older key. See Pricing to upgrade.Dependencies
Components and blocks are built on shadcn/ui (shadcn-vue for Vue), Tailwind CSS v4 and lucide icons. Some use extra libraries, which you can see in their imports:
- Charts: Recharts in React, the shadcn-vue chart components in Vue.
- Tables: TanStack Table for sorting, filtering and pagination.
- Dates: date-fns and the calendar primitive.
Install whatever is missing with pnpm, for example pnpm add recharts.
Match your theme
Components and blocks only use theme tokens (bg-background, text-muted-foreground, border, bg-primary), never hard-coded brand colors. Dropped into one of our templates, or any shadcn/ui project, they automatically pick up its colors, radius and dark mode.