# Banner 03

> A simple banner block

A shadcn/ui block from the [@shadcnui-blocks](https://shadcnui-blocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnui-blocks/banner-03).

- Page, with a live preview: https://shadcn.exchange/r/shadcnui-blocks/banner-03
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnui-blocks/banner-03-light-6e06e10b5d2fc735.png
- Registry item: https://shadcnui-blocks.com/r/banner-03.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnui-blocks.com/r/banner-03.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `lucide-react`
- Registry items: `button`

## Files

### `src/registry/blocks/radix/banner-03/components/banner.tsx`

```tsx
import { ArrowUpRight, ChartPie, X } from "lucide-react";
import { Button } from "@/registry/bases/radix/ui/button";
import { cn } from "@/lib/utils";

export default function Banner() {
  return (
    <div className="px-6 py-10">
      <div className="relative mx-auto flex min-h-10 max-w-2xl flex-wrap items-center justify-between gap-x-3 gap-y-4 rounded-lg bg-primary/10 px-4 py-3 text-center text-sm">
        <div className="flex items-center gap-3">
          <div className="flex size-8 items-center justify-center rounded-full bg-primary/13 text-primary">
            <ChartPie className="size-5" />
          </div>
          <p>You can now see your analytics in real-time.</p>
        </div>

        <div className="flex items-center gap-2">
          <Button size="sm">
            Explore <ArrowUpRight />
          </Button>
          <Button
            className={cn(
              "hover:bg-primary/13 sm:-me-2",
              "max-sm:absolute max-sm:-top-2.5 max-sm:-right-2.5 max-sm:size-6 max-sm:border max-sm:bg-background max-sm:hover:bg-muted"
            )}
            size="icon"
            variant="ghost"
          >
            <X />
          </Button>
        </div>
      </div>
    </div>
  );
}
```
