Promo Mega Navbar

About this block

Promo Mega NavbarPRO

Airy navbar with one mega item and two plain links — its panel pairs grouped link columns with a featured promo card. A primary pill CTA plus an expanding search field that swaps in over the actions. Closes on outside click or Escape.

Airy navbar with one mega-menu item and plain links either side; its panel pairs badge-labeled link columns with a featured promo card (heading, link and square image). The header also carries a primary pill CTA plus a search trigger that, on click, swaps the CTA/search icon pair out (kept mounted but invisible so the layout never shifts) for an absolutely positioned expanding search field anchored to the right edge, which auto-focuses itself and closes on outside click or Escape.

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://ui.beste.co/r/navbar69?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

This installs the block to components/beste/block/navbar69.tsx, the badge7 and button12 components it uses for the panel's group titles and the CTA pill, and its dependencies.

Quick start

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

tsx
import { Navbar69, navbar69Demo } from "@/components/beste/block/navbar69";

export default function Layout() {
  return <Navbar69 {...navbar69Demo} />;
}

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

tsx
import { Navbar69 } from "@/components/beste/block/navbar69";

export default function Layout() {
  return (
    <Navbar69
      brand="Auralis"
      items={[
        { label: "How we work", href: "/how-we-work" },
        {
          label: "What we make",
          href: "/services",
          panel: {
            groups: [
              {
                title: "Disciplines",
                links: [
                  { label: "Brand foundations", href: "/services/brand" },
                  { label: "Interfaces & UI", href: "/services/ui" },
                ],
              },
            ],
            featured: {
              heading: "Two seats left in our spring cohort.",
              linkLabel: "See what's involved",
              href: "/cohort",
              image: { src: "/cohort.jpg", alt: "Designer reviewing brand boards" },
            },
          },
        },
      ]}
      button={{ label: "See if we fit", href: "/contact" }}
      searchPlaceholder="Find work, notes or people…"
    />
  );
}

Props

PropTypeDefaultDescription
brandstringWordmark text, linked home
itemsNavItem[][]Top-level nav entries; entries with a panel open the mega menu, others behave as plain links
button{ label: string; href: string }Primary pill CTA rendered with button12
searchPlaceholderstringPlaceholder text for both the desktop overlay and mobile search inputs
classNamestringExtra classes for the outer <header>
ts
type NavItem = { label: string; href: string; panel?: MegaPanel };

type MegaPanel = {
  groups: LinkGroup[];
  featured: Featured;
};

type LinkGroup = { title: string; links: NavLink[] };

type Featured = {
  heading: string;
  linkLabel: string;
  href: string;
  image: { src: string; alt: string };
};

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

Behavior notes

  • Items with a panel render as a <button> with a rotating chevron; hovering opens the panel, clicking toggles it, and hovering a plain link closes any open panel. The panel is absolutely positioned (top-full, full width) and always mounted, toggling visible/invisible with a translate/opacity transition rather than being conditionally rendered, so it is SSR-safe.
  • Clicking the search icon opens the search field and closes any open mega panel (setActiveIndex(null)); the field is an absolute overlay anchored to the right edge of the nav so opening it never reflows the header. A dedicated useEffect focuses the input as soon as searchOpen becomes true.
  • Both the mega panel and the search field share one outside-click/Escape handler: a pointerdown outside the <header> ref, or an Escape keydown, closes whichever is open.
  • The CTA button and search trigger are kept mounted at all times and only toggled invisible while searching, rather than being removed, to avoid any layout shift when the search overlay appears.
  • Mega panels and the search trigger/overlay only appear at lg and up. Below that, the mobile menu (conditionally rendered while open) shows its own always-visible search input at the top, followed by every item's label as a link, with panel groups flattened into one indented link list per item.

Wiring the form up

This block ships the form markup only; state, validation, and submit are yours to add. Our guide wires the shadcn Field primitives to React Hook Form, TanStack Form, and Formisch on one field system.

More Navigation blocks

View all Navigation
PRO

navbar19

Mega Menu Navbar

Full-width mega menu navbar with multi-column product dropdowns, icon-enhanced links, and promotional cards. Perfect for SaaS products and enterprise sites with extensive feature offerings.

PRO

navbar81

Columns Mega Navbar

A sticky frosted navbar with two mega items, each dropping a full-width panel of three small-caps link groups in serif type beside a soft featured card with a photograph, an eyebrow and a lifting arrow link. Every panel stays in the markup and is shown with CSS; a light mobile menu groups the same links.

PRO

navbar60

Mega Studio Navbar

Full mega-menu navbar — bold links open three-column panels with parenthetical section labels, descriptions and a footer link. SSR-mounted panels, pill CTA and a stacked mobile menu.

PRO

navbar54

Multi Mega Menu Navbar

Navbar where multiple items each open their own mega panel — three eyebrow-titled columns of described links with a view-all footer strip.

PRO

navbar66

Featured Mega Navbar

Mega-menu navbar whose panels lead with a featured project — a full-color image card with a parenthetical category beside a ruled link list. SSR-mounted panels and a stacked mobile menu.

PRO

navbar61

Use-Case Mega Navbar

Navbar with a marked wordmark and a pill-highlighted trigger that drops a floating rounded mega panel — a parenthetical label over a 3x2 grid of icon use-case cards. Sign-in pill plus a primary CTA.