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.
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.
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.
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
npx shadcn add "https://ui.beste.co/r/navbar40?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
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).
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.
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:
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
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
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 |
breadcrumbs | BreadcrumbItemProps[] | [] | Trail entries for the second row; the row is hidden entirely when empty |
navItems | NavItem[] | [] | Desktop and mobile nav links in the main row |
actionButtons | Array<{ label: string; href?: string; variant?: "default" | "outline" | "ghost" }> | [] | Buttons rendered right of the nav, repeated in the mobile panel |
showHomeIcon | boolean | true | Prepends a Home-icon crumb linking to logo.href before the breadcrumbs trail |
className | string | – | Extra classes for the outer wrapper <div> |
type BreadcrumbItemProps = { label: string; href?: string };
type NavItem = { label: string; href?: string };breadcrumbs.length > 0; there is no way to force-show an empty trail.BreadcrumbLink) except the last one, which always renders as static BreadcrumbPage text regardless of whether it has an href — so the final entry is never clickable.sticky together as one wrapped unit; desktop nav links and action buttons show at lg and up.lg, a hamburger toggles a conditionally rendered panel ({mobileMenuOpen && ...}) with stacked nav links and full-width action buttons; the breadcrumb strip itself has no separate mobile treatment and stays visible at all widths when present.navbar38
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.
navbar51
Two-row navbar with brand, availability status and seal CTA on top, and an underlined active-tab link row that scrolls horizontally on mobile.
navbar33
Navbar with hover-activated dropdowns supporting nested sub-menus for deep navigation hierarchies. Perfect for enterprise software and documentation sites with complex information architecture.
navbar56
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.
navbar32
Navbar with prominent search input, navigation links, and action button for search-driven experiences. Perfect for marketplaces, directories, and content platforms prioritizing discovery.
navbar34
Navbar with slide-in sidebar drawer featuring grouped navigation sections and overlay backdrop. Perfect for content-rich sites wanting organized off-canvas navigation menus.