# Marketing Navbar: Announcement Bar Nav

A sticky header with a primary announcement bar and arrow link above a frosted navbar with centered links and dual CTAs.

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

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-pro-navbars-announcement-bar-nav
```

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: button, sheet
- Installs to: `@/components/blocks/marketing-pro/navbars/announcement-bar-nav`

## About this block

Announcement Bar Nav stacks two bars into one sticky header. The top strip
uses the primary color to carry a single short update, here a release
note, with an arrow link that invites a click. Beneath it sits a frosted
glass navbar: a square brand mark and wordmark on the left, four
navigation links optically centered in the middle, and a ghost "Sign in"
button beside a solid pill shaped "Get started" button on the right.

On narrow screens the centered links and CTA buttons give way to a
hamburger icon that opens a sheet from the right edge of the screen. The
sheet repeats the brand, lists the same links as tall touch targets, and
stacks both action buttons at the bottom. The announcement copy, its link
label, the nav links, and the button text are all plain strings you can
swap without touching the layout.

## When to use

Reach for this header when there is one thing the whole site should
announce: a major release, a funding round, an upcoming webinar, or a
launch offer. Pairing the loud primary strip with a quiet glass navbar
lets the announcement own the first glance while navigation stays calm
and familiar. It works especially well for a product that ships visibly
and often, where the bar doubles as ongoing proof of momentum.

A natural flow around it on a Marketing Pro page:

**Before**

- Nothing above the header. The announcement strip is designed to be the
  first pixel on the page.

**After**

- A [hero section](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/hero-sections) that expands on the
  announcement directly below the bar.
- A [changelog](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/changelog-sections) further down the page so
  the release the strip teases has a full story behind it.

## What you can display

The announcement strip is a general purpose slot for one line of news. A
few ways to use it:

- **A release headline.** Point the arrow link at your changelog or blog
  post so the bar becomes the shortest path to what just shipped.
- **An event invitation.** Announce a webinar or conference talk and send
  the link straight to the registration page.
- **A launch offer.** Surface an introductory discount and route the link
  to pricing, where the deal is spelled out in full.

> Tip: keep the announcement to a single sentence that survives
> truncation on mobile. If the message needs a second clause, move the
> detail to the destination page and let the strip carry only the hook.

## More in Marketing Navbars

- [Bordered Grid Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/bordered-grid-nav)
- [Centered Links Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/centered-links-nav)
- [Compact Centered Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/compact-centered-nav)
- [Dark Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/dark-nav)
- [Double Deck Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/double-deck-nav)
- [Mega Menu Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/mega-menu-nav)
- [Minimal Nav With Search](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/minimal-nav-with-search)
- [Nav With Announcement](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/nav-with-announcement)
- [Navbar With Promo Banner](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/navbar-with-promo-banner)
- [Phone CTA Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/phone-cta-nav)
- [Pill Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/pill-nav)
- [Slim Glass Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/slim-glass-nav)
- [Split Logo Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/split-logo-nav)
- [Stacked Centered Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/stacked-centered-nav)
- [Standard Sticky Nav](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/standard-sticky-nav)
- [Subnav Section Bar](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/navbars/subnav-section-bar)
