Featured Mega Navbar

About this block

Featured Mega NavbarPRO

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.

Mega-menu navbar whose dropdown items open a two-column panel led by a full-color featured project card (image, category eyebrow and title) beside a ruled list of secondary links. Panels are always mounted in the DOM and hidden with CSS rather than conditionally rendered, so they are present for SSR and only toggle visibility on interaction.

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/navbar66?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

This installs the block to components/beste/block/navbar66.tsx, the badge7 and button12 components it uses for the panel's category badge and the header CTA, and its dependencies.

Quick start

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

tsx
import { Navbar66, navbar66Demo } from "@/components/beste/block/navbar66";

export default function Layout() {
  return <Navbar66 {...navbar66Demo} />;
}

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

tsx
import { Navbar66 } from "@/components/beste/block/navbar66";

export default function Layout() {
  return (
    <Navbar66
      brand="Auralis"
      items={[
        {
          label: "Work",
          href: "/work",
          panel: {
            featured: {
              image: { src: "/case-study.jpg", alt: "Brand system spread on a table" },
              category: "Latest case study",
              title: "How Northwind found its voice",
              href: "/work/northwind",
            },
            links: [
              { label: "All projects", description: "Eighteen launches", href: "/work" },
              { label: "Brand systems", href: "/work/brand" },
            ],
          },
        },
        { label: "Journal", href: "/journal" },
      ]}
      button={{ label: "Work with us", href: "/contact" }}
    />
  );
}

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 }Pill CTA rendered with button12
classNamestringExtra classes for the outer <header>
ts
type NavItem = {
  label: string;
  href: string;
  panel?: {
    featured: Featured;
    links: SubLink[];
  };
};

type Featured = {
  image: { src: string; alt: string };
  category: string;
  title: string;
  href: string;
};

type SubLink = { label: string; description?: string; href: string };

Behavior notes

  • Items with a panel render as a <button> (not a link) with a chevron that rotates 180° when open; hovering the button opens its panel, and clicking toggles it, while hovering a plain link closes any open panel.
  • The panel closes on outside pointer-down (via a ref on the <header>) or on Escape, both wired through a single useEffect.
  • The panel is absolutely positioned below the header (top-full), spans the full width, and animates with a translate/opacity transition; it is always mounted (hidden lg:block + invisible/visible), never conditionally rendered, so it is SSR-safe.
  • Mega panels only appear from lg upward. Below that, the mobile menu (conditionally rendered while open) lists every item's label as a link and, for items with a panel, indents that panel's links underneath it; the featured card is not shown on mobile.

More Navigation blocks

View all Navigation
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

navbar47

Mega Menu Navbar

Studio navbar whose Work item opens a full-width mega panel with category links and three featured project thumbnails.

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

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

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

navbar53

Dark Mega Menu Navbar

Dark studio navbar whose Services item opens a mega panel with three eyebrow-titled link columns and a bordered booking card with a seal CTA.