# Banner Announcement

> Inverted announcement bar with dismiss affordance.

A shadcn/ui block from the [@blockforge](https://blockforge.terravidhal.me) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/blockforge/banner-announcement).

- Page, with a live preview: https://shadcn.exchange/r/blockforge/banner-announcement
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/blockforge/banner-announcement-light-08b2ef5af9d47b77.png
- Registry item: https://blockforge.terravidhal.me/r/banner-announcement.json
- Categories: banner
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://blockforge.terravidhal.me/r/banner-announcement.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`

## Files

### `registry/blocks/banner-announcement.tsx`

```tsx
import Link from "next/link";
import { ArrowRight, X } from "lucide-react";

export default function BannerAnnouncement() {
  return (
    <div className="relative border-b border-border/60 bg-foreground text-background">
      <div className="mx-auto flex w-full max-w-6xl items-center justify-center gap-3 px-12 py-2.5">
        <span className="hidden rounded-full bg-background/15 px-2 py-0.5 font-mono text-[10px] tracking-wide uppercase sm:inline">
          New
        </span>
        <p className="text-sm">
          Acme 3.0 is out — 2× faster builds and edge functions.
        </p>
        <Link
          href="#"
          className="inline-flex shrink-0 items-center gap-1 text-sm font-medium underline-offset-4 hover:underline"
        >
          Read more
          <ArrowRight className="size-3.5" />
        </Link>
      </div>
      <button
        type="button"
        aria-label="Dismiss announcement"
        className="absolute top-1/2 right-3 flex size-7 -translate-y-1/2 items-center justify-center rounded-md text-background/70 transition-colors hover:bg-background/10 hover:text-background"
      >
        <X className="size-4" />
      </button>
    </div>
  );
}
```
