# Dismissible Bar And Callout

> Dismissible top announcement bar above a centered release callout card with a What's New badge, headline, and two call-to-action buttons.

A shadcn/ui block from the [@7ovr](https://7ovr.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/7ovr/announcement-1).

- Page, with a live preview: https://shadcn.exchange/r/7ovr/announcement-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/7ovr/announcement-1-light-49e5ade650bbb0be.png
- Registry item: https://7ovr.com/r/announcement-1.json
- Categories: announcement
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://7ovr.com/r/announcement-1.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: `@base-ui/react`
- Registry items: `badge`, `button`

## Notes from the registry

Requires a `base-*` style in components.json (the `shadcn init` default). Legacy `new-york`/`radix-*` styles install Radix primitives, which reject the `render` prop this block uses.

## Files

### `registry/blocks/announcement/1/announcement-block.tsx`

```tsx
"use client"

import { useState } from "react"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
import { IconPlaceholder } from "@/components/icons/icon-placeholder"

export default function AnnouncementBlock() {
  const [dismissed, setDismissed] = useState(false)

  return (
    <section className="flex min-h-svh w-full flex-col items-center justify-center bg-background px-6 py-12 text-foreground">
      <div className="w-full max-w-2xl">
        {!dismissed && (
          <div className="flex w-full items-center justify-between gap-3 rounded-lg border border-border bg-primary px-4 py-2.5 text-primary-foreground">
            <div className="flex items-center gap-2 text-sm font-medium">
              <IconPlaceholder
                lucide="Megaphone"
                tabler="IconSpeakerphone"
                hugeicons="MegaphoneIcon"
                phosphor="Megaphone"
                remixicon="RiMegaphoneLine"
                className="size-4 shrink-0"
                aria-hidden="true"
              />
              <span>
                Acme 3.0 is here: faster, smarter, and redesigned.{" "}
                <Button
                  variant="link"
                  size="sm"
                  render={<a href="#" />}
                  nativeButton={false}
                  className="h-auto p-0 text-primary-foreground underline underline-offset-2 hover:text-primary-foreground/80"
                >
                  Read The Announcement
                  <span className="sr-only"> (opens in same tab)</span>
                </Button>
              </span>
            </div>
            <Button
              variant="ghost"
              size="icon-sm"
              aria-label="Dismiss announcement"
              onClick={() => setDismissed(true)}
              className="shrink-0 hover:bg-primary-foreground/10 hover:text-primary-foreground"
            >
              <IconPlaceholder
                lucide="X"
                tabler="IconX"
                hugeicons="Cancel01Icon"
                phosphor="X"
                remixicon="RiCloseLine"
                aria-hidden="true"
              />
            </Button>
          </div>
        )}

        <div className="mt-6 rounded-lg border border-border bg-card px-6 py-10 text-center sm:px-10">
          <Badge variant="secondary">
            <IconPlaceholder
              lucide="Sparkles"
              tabler="IconSparkles"
              hugeicons="SparklesIcon"
              phosphor="Sparkle"
              remixicon="RiSparkling2Line"
              data-icon="inline-start"
              aria-hidden="true"
            />
            What&apos;s New
          </Badge>
          <h2 className="mt-4 font-heading text-2xl font-bold tracking-tight sm:text-3xl">
            Introducing Acme 3.0
          </h2>
          <p className="mx-auto mt-3 max-w-md text-sm text-muted-foreground">
            A faster engine, a redesigned workspace, and powerful new
            automations. Everything your team needs to ship sooner.
          </p>
          <div className="mt-6 flex flex-col items-center justify-center gap-3 sm:flex-row">
            <Button
              render={<a href="#" />}
              nativeButton={false}
              className="w-full sm:w-auto"
            >
              Explore The Release
              <IconPlaceholder
                lucide="ArrowRight"
                tabler="IconArrowRight"
                hugeicons="ArrowRightIcon"
                phosphor="ArrowRight"
                remixicon="RiArrowRightLine"
                data-icon="inline-end"
                aria-hidden="true"
              />
            </Button>
            <Button
              variant="outline"
              render={<a href="#" />}
              nativeButton={false}
              className="w-full sm:w-auto"
            >
              View Changelog
            </Button>
          </div>
        </div>
      </div>
    </section>
  )
}
```
