Skip to content

shadcn Button examples

The clickable control in its variants: default, secondary, outline, ghost, link and destructive, in three sizes and as an icon button. In our blocks it carries nearly every call to action, from hero buttons to table row actions: 1,118 blocks and 195 app screens use it. Every example below is a finished section with real copy, light and dark, that installs with the shadcn CLI.

Blocks built with shadcn Button

Showing 48 of 1,313. The rest are in their categories: hero (44), pricing (44), features (40), header (36), sign in and sign up (34), call to action (31) and more.

Questions about shadcn Button

How many blocks use shadcn Button?

1,313 of ours: 1,118 blocks and 195 app screens, in 106 categories, most of all hero (44), pricing (44), features (40). Each one imports the Button from your own components/ui folder, so it follows your theme.

How do I install shadcn Button?

shadcn/ui’s own component: npx shadcn@latest add button. Our free example: npx shadcn@latest add @themesdev/button, no account needed. A block from this page brings the Button along as a dependency, so you never install it by hand.

Are these examples free?

27 of the 1313 are free and install without an account. The other 1286 come with UI Pro, €199 once for one person (excl. tax).

Do they work with Next.js and Astro?

Yes. They are React components on shadcn/ui and Tailwind CSS v4, so they run in Next.js, Vite and Astro with React. In Astro they render on the server, and only the parts that need interaction ship JavaScript.

Other shadcn/ui components in our blocks

All shadcn/ui pages

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans