Breadcrumb Navbar

Two-row navbar with main navigation and secondary breadcrumb bar for hierarchical content paths. Perfect for e-commerce product pages and documentation with deep category structures.

PRO

A two-row navbar aimed at deep content hierarchies: a standard main navigation row (logo, links, action buttons) sits above a second, muted breadcrumb strip that renders a Home icon plus a BreadcrumbItem trail built from the breadcrumbs prop, with the last crumb rendered as plain (non-link) current-page text. The breadcrumb row only appears when breadcrumbs has entries, so the block degrades cleanly to a single-row navbar when it's omitted.

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.

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

Base UI flavor

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

This installs the block to components/beste/block/navbar40.tsx and the shadcn/ui dependencies it needs (button, breadcrumb).

Quick start

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

tsx
import { Navbar40, navbar40Demo } from "@/components/beste/block/navbar40";

export default function Layout() {
  return <Navbar40 {...navbar40Demo} />;
}

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

tsx
import { Navbar40 } from "@/components/beste/block/navbar40";

export default function Layout() {
  return (
    <Navbar40
      logo={{ text: "BreadNav", href: "/" }}
      breadcrumbs={[
        { label: "Products", href: "/products" },
        { label: "Electronics", href: "/products/electronics" },
        { label: "Smartphones" },
      ]}
      navItems={[
        { label: "Overview", href: "/overview" },
        { label: "Reviews", href: "/reviews" },
      ]}
      actionButtons={[{ label: "Buy Now", variant: "default", href: "/buy" }]}
      showHomeIcon
    />
  );
}

Props

PropTypeDefaultDescription
logo{ text: string; href?: string }Brand text and link, shown at the left of the main row; also the target of the breadcrumb's home icon
breadcrumbsBreadcrumbItemProps[][]Trail entries for the second row; the row is hidden entirely when empty
navItemsNavItem[][]Desktop and mobile nav links in the main row
actionButtonsArray<{ label: string; href?: string; variant?: "default" | "outline" | "ghost" }>[]Buttons rendered right of the nav, repeated in the mobile panel
showHomeIconbooleantruePrepends a Home-icon crumb linking to logo.href before the breadcrumbs trail
classNamestringExtra classes for the outer wrapper <div>
ts
type BreadcrumbItemProps = { label: string; href?: string };

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

Behavior notes

More Navigation blocks

View all Navigation
PRO

navbar38

Dual-Row Navbar

Two-tier navbar with slim top bar for announcements and contact info above main navigation. Perfect for e-commerce and service businesses displaying promotions and support details.

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.

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

navbar56

Giant Wordmark Navbar

Typographic statement navbar — a hairline row of index-numbered links and availability above a giant wordmark with a primary square, studio meta and seal CTA.

PRO

navbar32

Search-Focused Navbar

Navbar with prominent search input, navigation links, and action button for search-driven experiences. Perfect for marketplaces, directories, and content platforms prioritizing discovery.

PRO

navbar34

Sidebar Drawer Navbar

Navbar with slide-in sidebar drawer featuring grouped navigation sections and overlay backdrop. Perfect for content-rich sites wanting organized off-canvas navigation menus.