Navbar with slide-in sidebar drawer featuring grouped navigation sections and overlay backdrop. Perfect for content-rich sites wanting organized off-canvas navigation menus.
Navbar for content-rich sites that want their full navigation off-canvas: a slim top bar shows only the logo, up to four links, and action buttons, while a hamburger opens a full-height slide-in drawer with grouped, titled sections for everything else.
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/navbar34?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/navbar34?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/navbar34.tsx and the shadcn/ui dependency it needs (button).
The installed file exports navbar34Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.
import { Navbar34, navbar34Demo } from "@/components/beste/block/navbar34";
export default function Layout() {
return <Navbar34 {...navbar34Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Navbar34 } from "@/components/beste/block/navbar34";
export default function Layout() {
return (
<Navbar34
logo={{ text: "Acme", href: "/" }}
navSections={[
{ items: [{ label: "Home", href: "/" }, { label: "Blog", href: "/blog" }] },
{
title: "Company",
items: [
{ label: "Careers", href: "/careers" },
{ label: "Contact", href: "/contact" },
],
},
]}
actionButtons={[{ label: "Get started", href: "/signup" }]}
sidebarPosition="left"
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
logo | { text: string; href?: string } | – | Brand text and link; falls back to "Brand" / # when omitted |
navSections | NavSection[] | [] | Grouped nav links shown inside the drawer; only the first section's first 4 items also appear inline in the top bar |
actionButtons | Array<{ label: string; href?: string; variant?: "default" | "outline" | "ghost" }> | [] | Buttons shown in the desktop top bar and repeated in the drawer footer |
sidebarPosition | "left" | "right" | "left" | Which edge the hamburger button and the drawer itself are anchored to |
className | string | – | Extra classes for the outer <nav> |
type NavSection = { title?: string; items: NavItem[] };
type NavItem = { label: string; href?: string; icon?: React.ReactNode };navSections[0]'s first four items appear inline in the desktop top bar; every section (including titled ones), any items past the fourth, and the full nav always live in the drawer only.sidebarPosition, and the drawer slides in from that same edge, capped at w-80 and 85vw on narrow screens, with a translate-x transition.document.body.style.overflow = "hidden" to lock background scroll, restored automatically on close or unmount.bg-background/80 backdrop-blur-sm) closes the drawer on click; clicking any link inside the drawer also closes it.title is set, as an uppercase muted label above that group's items; each NavItem can carry an arbitrary icon node rendered before its label.navbar49
Minimal navbar with an availability status whose menu opens a dark right-side drawer — numbered links float in with a stagger over a backdrop, with a seal CTA and socials below.
navbar64
A quiet top bar whose menu button opens a full-screen overlay — oversized numbered links with hover arrows, a contact block and social row beneath. Pure Auralis big type.
navbar40
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.
navbar54
Navbar where multiple items each open their own mega panel — three eyebrow-titled columns of described links with a view-all footer strip.
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.
navbar45
Dark navbar with a hamburger menu cell that opens a fullscreen overlay — the panel and its centered links cascade down from the top, with a contact footer.