shadcn blocks vs components: what is the difference?
A component is one interface part, a block is a finished section built from several. How primitives, components, blocks and page templates fit together.
- shadcn 4.23.0
A shadcn/ui component is one interface part: a button, a dialog, a date picker. A block is a finished section or screen built from several components: a pricing section, a sign-in page, a dashboard. Both install with the same CLI and both end up as files in your project. The difference is size and how much of the design is decided for you.

The four levels
| Level | What it is | Example | Registry type |
|---|---|---|---|
| Primitive | The base parts shadcn/ui ships: unstyled behaviour from Radix, Base UI or React Aria, with shadcn's classes | Button, Dialog, Tabs | registry:ui |
| Component | A designed part made of primitives, used inside sections | Account chooser, price with VAT line, stat tile | registry:component |
| Block | A whole section or app screen, with real layout and content props | Pricing section, hero, settings page | registry:block |
| Page template | A full page assembled from blocks | Home page, pricing page | registry:page or registry:block |
The registry types come from shadcn's registry schema. They mostly tell the CLI where to put the files: registry:ui goes to your ui folder, other types to components or a target path the item sets. Nothing stops a registry from labelling things differently, so read the type as a hint, not a rule.
The official site uses the words the same way: ui.shadcn.com/docs/components lists primitives, and ui.shadcn.com/blocks has a small set of app blocks (sidebars, sign-in pages, dashboards). It has no marketing sections, which is where most third-party block libraries, ours included, come in.
Which one do you need?
Use components when you're designing the page yourself and want good parts. You decide the layout, spacing and copy; the component handles behaviour, states and accessibility.
Use blocks when you want a section that already works as a whole: the hierarchy, the spacing between heading and cards, the mobile layout, the empty and loading states. A block saves the hours between "I have a Card component" and "this pricing section converts". The trade-off is that you inherit design decisions, so pick blocks whose look you'd have chosen anyway, and expect to edit them. You own the file.
Page templates and themes are for when the decision is "what does the whole site look like", not "what does this section look like".
How they connect in your project
A block lists the components it uses as registry dependencies. Installing it pulls them in. We installed our free pricing block into a fresh project:
npx shadcn@latest add https://www.themes.dev/r/ui/pricing.json✔ Created 4 files: - src/components/ui/badge.tsx - src/components/ui/separator.tsx - src/components/ui/tabs.tsx - src/components/blocks/pricing.tsxThe block landed in components/blocks/, its primitives in components/ui/. The CLI also asked whether to overwrite our existing button.tsx; we said no and kept our version. Edit a primitive and every block that uses it follows, which is the point: one button, everywhere. More on that in updating components.
What themes.dev has at each level
The free library has 72 components and 23 blocks, which install without an account. UI Pro has 1154 blocks, 169 app screens, 75 Pro components, 44 page templates and every website theme. Everything runs on shadcn/ui and Tailwind CSS v4, for React and Astro. Browse the blocks or the components.
Questions
Are shadcn blocks free?
The official blocks on ui.shadcn.com are free and open source, like the components. Third-party libraries vary: most have a free set and a paid set. Our free set is in the free library.
Can I use blocks without shadcn/ui?
Not really. A shadcn block imports its components from @/components/ui/…, so you need those files. The CLI installs them for you if they're missing.
Is a block the same as a template?
No. A block is one section; a template is a page or a site. People also say "theme" for two different things: a colour theme (CSS variables) or a whole website theme. shadcn/ui explained untangles the words.
Related articles
- Using themes.devInstall UI Pro blocks with the shadcn CLISet up the @themesdev registry once with an API key in .env.local, then install any block with one npx shadcn command. Free items need no key.
- shadcn/uiInstall components from a shadcn registry (npx shadcn add @namespace)Install by URL with no setup, or name a registry in components.json and install by namespace. Private registries read their key from .env.local.
- Using themes.devWhat the UI Pro licence allows: client work, teams and the MIT free libraryUnlimited projects and client sites, paid once. No reselling the blocks as a kit or template. How the sizes work, common cases, and how MIT differs.
Still stuck? We answer every message ourselves. Write to us