BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-ui-blocks/banner-01

Banner 01

shadcn-ui-blocks-shadcnship/banner-01
FreeBlock

Full-width announcement banner with a short message, an arrow link, and a dismiss button. Use it at the top of any page to surface time-sensitive promotions, feature launches, or important product updates.

See it running

Open the demo on shadcn-ui-blocks

shadcnship.com/blocks/banner-01
Open
This registry sends X-Frame-Options, so its page cannot be embedded here. The link is the same page the frame would have shown.

Install it

npx shadcn@latest add https://shadcnship.com/r/banner-01.json

Source

src/registry/blocks/banner-01/banner.tsxshadcnship.com/r/banner-01.json
1import { ArrowUpRight } from "lucide-react";
2import { cn } from "@/lib/utils";
3import { Button } from "@/components/ui/button";
4
5interface Banner01Props {
6 title?: string;
7 description?: string;
8 button?: {
9 text: string;
10 url?: string;
11 icon?: React.ReactNode;
12 variant?: "default" | "outline" | "ghost" | "secondary" | "link";
13 };
14 className?: string;
15}
16
17const Banner01 = ({
18 title = "Shadcn 2026",
19 description = "Join us in Paris from June 20 - 24 to see what's coming next.",
20 button = {
21 text: "Register now",
22 url: "#",
23 variant: "outline",
24 icon: (
25 <ArrowUpRight className="size-4 transition-transform group-hover:translate-x-0.5" />
26 ),
27 },
28 className,
29}: Banner01Props) => {
30 return (
31 <div className={cn("fixed top-0 w-full border-b bg-background", className)}>
32 <div className="container mx-auto flex flex-col items-center justify-between gap-2 px-4 py-3 md:flex-row md:gap-4 md:px-6">
33 <p className="flex-col text-sm">
34 <span className="font-semibold">{title}</span>
35 <span className="mx-2 text-muted-foreground">·</span>
36 <span className="text-muted-foreground">{description}</span>
37 </p>
38 {button && (
39 <Button
40 key={button.text}
41 variant={button.variant ?? "default"}
42 asChild
43 >
44 <a
45 href={button.url}
46 className="group flex w-full shrink-0 items-center gap-1 text-sm font-medium md:w-fit"
47 >
48 {button.text}
49 {button.icon}
50 </a>
51 </Button>
52 )}
53 </div>
54 </div>
55 );
56};
57
58export default Banner01;

What it pulls in

npm packages

  • lucide-react

Other registry items

  • button

Files it writes

  • src/registry/blocks/banner-01/banner.tsx

Facts

Registry
shadcn-ui-blocks
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
today

Go to the source

Docs on shadcn-ui-blocks shadcnship.com arnaudvolp/shadcnship on GitHub Raw registry item This item as JSON

More from shadcn-ui-blocks

All 74 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Square Grid Backgroundbackground-01shadcn-ui-blocksBlocksFreeno deps
Dot Pattern Backgroundbackground-02shadcn-ui-blocksBlocksFreeno deps
Diagonal Stripes Backgroundbackground-03shadcn-ui-blocksBlocksFreeno deps
Vertical Lines Backgroundbackground-04shadcn-ui-blocksBlocksFreeno deps
Interactive Grid Backgroundbackground-05shadcn-ui-blocksBlocksFreeno deps
Blog 01blog-01shadcn-ui-blocksBlocksFreeno deps
Changelog 01changelog-01shadcn-ui-blocksBlocksFreeno deps
Comparison 01comparison-01shadcn-ui-blocksBlocksFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex