Submenu Navbar

About this block

Submenu NavbarPRO

Studio navbar with hover dropdown submenus on desktop, described sublinks, a seal CTA and an inline-expanded mobile menu.

Studio navbar where top-level links can carry a children array that opens as a hover dropdown on desktop, listing each sublink with an optional description line. A seal CTA sits on the right, and below lg the same hierarchy renders as an inline-expanded mobile menu instead of a hover panel.

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

Base UI flavor

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

This installs the block to components/beste/block/navbar46.tsx and the button1 component it uses for its call-to-action.

Quick start

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

tsx
import { Navbar46, navbar46Demo } from "@/components/beste/block/navbar46";

export default function Layout() {
  return <Navbar46 {...navbar46Demo} />;
}

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

tsx
import { Navbar46 } from "@/components/beste/block/navbar46";

export default function Layout() {
  return (
    <Navbar46
      brand="Polaris"
      links={[
        { label: "Work", href: "/work" },
        {
          label: "Services",
          href: "/services",
          children: [
            { label: "Brand Identity", description: "Naming and systems", href: "/services/brand" },
            { label: "Web Engineering", description: "Fast front-ends", href: "/services/web" },
          ],
        },
        { label: "Journal", href: "/journal" },
      ]}
      cta={{ label: "Start a Project", href: "/contact" }}
    />
  );
}

Props

PropTypeDefaultDescription
brandstringWordmark text
linksNavLink[][]Top-level nav links; entries with a non-empty children array render a hover dropdown
ctaCtaLinkSeal button rendered via Button1, visible on lg and up
classNamestringExtra classes for the outer <header>
ts
type NavLink = {
  label: string;
  href: string;
  children?: SubLink[];
};

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

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

Behavior notes

  • Desktop submenus open on hover via CSS (group-hover), not a click or open state; they stay mounted in the DOM at all times and are toggled between invisible/opacity-0 and visible/opacity-100.
  • Only links whose children array is non-empty get a chevron and dropdown; the chevron rotates 180° on hover.
  • Submenu items can carry an optional description line under the label.
  • The mobile menu (conditionally rendered via {open && ...}) does not reuse the hover panel: it lists children inline under each parent label, indented with a left primary-colored border.

More Navigation blocks

View all Navigation
PRO

navbar33

Multi-Level Dropdown Nav

Navbar with hover-activated dropdowns supporting nested sub-menus for deep navigation hierarchies. Perfect for enterprise software and documentation sites with complex information architecture.

PRO

navbar59

Studio Bar Navbar

Editorial single-row navbar — bold wordmark, quiet bold links, and an outline pill CTA. Collapses to a clean full-height mobile menu.

PRO

navbar71

Pill Menu Navbar

A light editorial navbar with a lowercase wordmark, soft muted nav pills that reveal hover dropdowns, a solid accent call to action, and a collapsing mobile menu.

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

navbar41

Editorial Studio Navbar

Two-tier studio navbar with an availability utility strip, square-mark wordmark, index-numbered links and a seal CTA.

PRO

navbar51

Tab Bar Navbar

Two-row navbar with brand, availability status and seal CTA on top, and an underlined active-tab link row that scrolls horizontally on mobile.