# Banner 01

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

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

## Install

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

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

## Files

### `src/registry/blocks/shared/banner-01/components/banner.tsx`

```tsx
import Link from "next/link";

export default function Banner() {
  return (
    <div className="flex min-h-10 flex-wrap items-center justify-center bg-primary px-3 py-2 text-center text-primary-foreground text-sm">
      <span>Your free trial ends in 3 days.</span>
      <div>
        <Link className="mx-1 underline underline-offset-2" href="#/pricing">
          Upgrade
        </Link>
        <span>to continue using the full features.</span>
      </div>
    </div>
  );
}
```
