Dismissible Announcement Mega

Northwind 3.0 brings shared workspaces to every plan. See what changed

About this block

Dismissible Announcement MegaPRO

A muted announcement row with a close button sits above a sticky bar of brand, links and two buttons. The Platform item drops a full-width panel of three link columns beside a Latest changes column of dated changelog entries, and the phone menu slides down as a plain list with a pinned button footer. Every panel stays in the markup and is toggled with CSS.

A sticky bar topped by a muted announcement row that the visitor can close. The Platform item drops a full-width panel with three columns of described links and a fourth Latest changes column listing dated changelog entries; on a phone the links slide down as a plain list with the buttons pinned in a footer.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://beste.dev/r/navbar97?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://beste.dev/r-base/navbar97?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/navbar97.tsx plus the shadcn button primitive it uses.

Quick start

The installed file exports navbar97Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.

tsx
import { Navbar97, navbar97Demo } from "@/components/beste/block/navbar97";

export default function Page() {
  return <Navbar97 {...navbar97Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Navbar97 } from "@/components/beste/block/navbar97";

export default function Page() {
  return (
    <Navbar97
      brand="Northwind"
      announcement={{ text: "Northwind 3.0 is here.", linkLabel: "See what changed", href: "/changelog" }}
      mega={{
        label: "Platform",
        columns: [
          {
            title: "Collect",
            links: [
              { title: "Event stream", description: "Capture every action.", href: "/events" },
              { title: "Connectors", description: "Pull data from forty sources.", href: "/connectors" },
            ],
          },
          {
            title: "Understand",
            links: [{ title: "Dashboards", description: "Charts your team can read.", href: "/dashboards" }],
          },
        ],
        changes: {
          heading: "Latest changes",
          entries: [
            { date: "Oct 12", title: "Shared workspaces", href: "/changelog/workspaces" },
            { date: "Oct 03", title: "Longer funnels", href: "/changelog/funnels" },
          ],
          linkLabel: "Full changelog",
          href: "/changelog",
        },
      }}
      links={[
        { label: "Pricing", href: "/pricing" },
        { label: "Docs", href: "/docs" },
      ]}
      actions={[
        { label: "Log in", href: "/login", variant: "ghost" },
        { label: "Book a demo", href: "/demo" },
      ]}
      labels={{ open: "Open menu", close: "Close menu", dismiss: "Dismiss announcement" }}
    />
  );
}

Props

PropTypeDefaultDescription
brandstring–Wordmark on the left
announcementAnnouncement–Row above the bar with a close button
megaMega–The item that opens the platform panel
linksNavItem[][]Plain links beside it
actionsActionButton[][]Buttons on the right, repeated in the mobile footer
labels{ open?: string; close?: string; dismiss?: string }{}Accessible names for the mobile toggle and the announcement close button
classNamestring–Extra classes for the outer <header>
ts
type Announcement = {
  text: string;
  linkLabel: string;
  href: string;
};

type Mega = {
  label: string;
  columns: PlatformColumn[];
  changes: { heading: string; entries: ChangeEntry[]; linkLabel: string; href: string };
};

type PlatformColumn = {
  title: string;
  links: PlatformLink[];
};

type PlatformLink = {
  title: string;
  description: string;
  href: string;
};

type ChangeEntry = {
  date: string;
  title: string;
  href: string;
};

type NavItem = {
  label: string;
  href: string;
};

type ActionButton = {
  label: string;
  href: string;
  variant?: "default" | "outline" | "ghost" | "secondary";
};

Behavior notes

  • The platform panel and the mobile menu are always rendered and toggled with CSS classes, so every link is in the server-rendered HTML. Closed panels carry aria-hidden and inert.
  • The close button on the announcement only sets local state: the row collapses with a grid-template-rows transition and becomes inert, so nothing is stored and the row returns on the next page load.
  • The Platform trigger opens on hover and on click with aria-expanded and aria-controls; the panel closes when the pointer leaves the header, on Escape and on a pointer down outside.
  • The mobile menu flattens the platform columns into one list, scrolls inside a 75vh cap and keeps the actions buttons pinned in a muted footer; a ghost action is shown as an outline button there so it reads as a button.
  • Links inside the mobile menu close it on click.

More Navigation blocks

View all Navigation
PRO

navbar83

Three Column Product Mega

PRO

navbar110

Headline Mega

PRO

navbar99

Dark Glass Mega

Get Pro