# Marketing Banner: Dismissible Announcement Bar

A slim dismissible top of page bar on a primary background with an uppercase New tag, a one sentence message, an arrow link, and an X button.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/dismissible-announcement-bar
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing-pro), Standard tier
- Group: [Banners](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners)
- Created: 2026-07-02
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/dismissible-announcement-bar.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-pro-banners-dismissible-announcement-bar
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/marketing-pro/banners/dismissible-announcement-bar`

## About this block

Dismissible Announcement Bar is a slim strip that sits above everything else on the page.
It uses the primary color at full strength so a single line of news stands out
against the rest of the chrome: a tiny uppercase New tag, one short sentence,
and an arrow link that carries the click. An X button on the right lets
visitors dismiss it, and a small piece of client state hides the bar for the
rest of the visit.

The three pieces of content are independent, so you can swap the tag text, the
message, and the link without touching the layout. The bar is intentionally not
sticky; it scrolls away with the page so it never competes with a sticky
navbar below it. Because the message stays centered, the bar reads cleanly at
any width, and the dismiss control keeps its spot on the right edge.

## When to use

Reach for this block when something is genuinely new and time bound: a feature
launch, a changelog milestone, a webinar date, or a limited offer. A project
management tool shipping its automation engine, for example, can run this bar
for two weeks so every returning visitor sees the news once, follows the link
if they care, and dismisses it if they do not.

A natural flow around it on a Marketing Pro page:

**Before**

- Nothing. The bar is designed to be the first element on the page, directly
  above your [Navbars](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars)

**After**

- [Navbars](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars) follow immediately so the
  announcement reads as part of the site chrome
- [Heroes](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/hero-sections) then carry the promise the bar
  teases, ideally with matching copy

## What you can display

The obvious fit is a product launch headline. A few other ways to use the
frame:

- **An event invitation.** Swap the tag to Live and point the link at a
  webinar or conference registration page.
- **A seasonal offer.** Announce a discount window with the end date in the
  message so urgency is explicit, not implied.
- **A status notice.** Flag scheduled maintenance or a new region rollout to
  logged out visitors before they hit the app.

> Tip: keep the message to one sentence that fits a single line on desktop.
> If you need a second clause, move it behind the arrow link instead of
> letting the bar wrap.

## More in Marketing Banners

- [Announcement Bar](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/announcement-bar)
- [App Download Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/app-download-banner)
- [Bottom Docked Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/bottom-docked-banner)
- [Countdown Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/countdown-banner)
- [Email Capture Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/email-capture-banner)
- [Feedback Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/feedback-banner)
- [Integration Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/integration-banner)
- [Live Signups Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/live-signups-banner)
- [Promo Band With Cta](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/promo-band-with-cta)
- [Referral Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/referral-banner)
- [Region Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/region-banner)
- [Sale Banner Dark](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/sale-banner-dark)
- [Scheduled Maintenance Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/scheduled-maintenance-banner)
- [Update Banner With Badge](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/update-banner-with-badge)
- [Upgrade Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/upgrade-banner)
- [Webinar Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/banners/webinar-banner)
