Skip to content

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.

Updated 23 November 2026Tested with
  • 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.

Four levels side by side: a few buttons, a sign-in account chooser, a pricing section and a full home page
From small to large, all from our catalogue: shadcn primitives (buttons), a component (an account chooser), a block (a pricing section) and a page template (a home page made of blocks).

The four levels

LevelWhat it isExampleRegistry type
PrimitiveThe base parts shadcn/ui ships: unstyled behaviour from Radix, Base UI or React Aria, with shadcn's classesButton, Dialog, Tabsregistry:ui
ComponentA designed part made of primitives, used inside sectionsAccount chooser, price with VAT line, stat tileregistry:component
BlockA whole section or app screen, with real layout and content propsPricing section, hero, settings pageregistry:block
Page templateA full page assembled from blocksHome page, pricing pageregistry: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:

Terminal
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.tsx

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

Was this page helpful?

Still stuck? We answer every message ourselves. Write to us

This page is built from UI Pro parts: the docs article block (docs-quernly) with the code, terminal, install command, steps, contents and feedback components. They ship in the next UI Pro release; the install command and the contents rail are free.