# Banner 02

> 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-02).

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

## Install

```bash
npx shadcn@latest add https://shadcnui-blocks.com/r/banner-02.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-02/components/banner.tsx`

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

export default function Banner() {
  return (
    <div className="px-6 py-10">
      <div className="relative mx-auto flex min-h-10 max-w-lg flex-wrap items-center justify-between gap-3 rounded-lg bg-muted px-5 py-4 text-center text-sm">
        <p>We just released the premium version 🎉</p>
        <Button>
          Check it out <ArrowUpRight />
        </Button>
        <Button
          className="absolute -top-2.5 -right-2.5 size-6"
          size="icon"
          variant="outline"
        >
          <X className="size-3" />
        </Button>
      </div>
    </div>
  );
}
```
