Limited-time sale: up to 39% off all plans.Get the deal
Shadcnadmin.com

Search

Search dashboards, components and blocks

Blocks & Components

Documentation

Blocks & Components

Copy free components and install pro blocks with the shadcn CLI.

Components vs blocks

ComponentsBlocks
WhatSmall, focused examples: buttons, inputs, tables, charts, dialogsLarger dashboard sections: stat card rows, pipelines, task tables, modals
Where/components/blocks
PriceFreeFree and Pro (Pro needs the Pro or Pro Team plan)
CodeReact and VueReact, Vue and Svelte

Use a component

  1. 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.

  2. Copy the code

    Click Get the Code, choose the React or Vue tab and copy the source.

  3. 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?

Make sure you are signed in with the email you used at checkout, then reload the page. Pro blocks are included in Pro and Pro Team; a single template purchase does not include them.

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:

bash
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.

  1. Add the registry to components.json

    Add the @shadcnadmin registry to the registries field of your project's components.json:

    components.json
    Loading...
  2. Set your license key

    Put the key in .env or .env.local (keep it out of git). The CLI reads it from there.

    .env
    Loading...
  3. Install blocks by name

    Use the block name shown under Get the Code on Blocks. Free blocks work through the same registry.

    bash
    Loading...

Getting a 401 or 403?

A 401 means the key is missing or not valid: check that 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.