Studio navbar whose Work item opens a full-width mega panel with category links and three featured project thumbnails.
Studio navbar where the desktop "Work" item opens a full-width mega panel on hover or click: a left column of category links plus an "All projects" link, and a right grid of three featured project thumbnails with title and category. Below lg it collapses into a hamburger-triggered mobile menu that nests the mega menu's links under its own heading.
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.
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/navbar47?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/navbar47?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/navbar47.tsx and the button1 component it uses for its call-to-action.
The installed file exports navbar47Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.
import { Navbar47, navbar47Demo } from "@/components/beste/block/navbar47";
export default function Layout() {
return <Navbar47 {...navbar47Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Navbar47 } from "@/components/beste/block/navbar47";
export default function Layout() {
return (
<Navbar47
brand="Polaris"
megaMenu={{
label: "Work",
overviewLabel: "All projects",
overviewHref: "/work",
links: [
{ label: "Brand Identity", href: "/work/brand" },
{ label: "Product Design", href: "/work/product" },
],
projects: [
{
title: "Lumen Rebrand",
category: "Brand Identity",
href: "/work/lumen",
image: { src: "/projects/lumen.jpg", alt: "Lumen rebrand poster wall" },
},
],
}}
links={[
{ label: "Studio", href: "/studio" },
{ label: "Journal", href: "/journal" },
]}
cta={{ label: "Start a Project", href: "/contact" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
brand | string | – | Wordmark text; the brand link is skipped if omitted |
megaMenu | MegaMenu | – | Optional mega menu item rendered before links; drives the hover/click panel |
links | NavLink[] | [] | Regular nav links rendered after the mega menu item |
cta | CtaLink | – | Call-to-action rendered as a button1 seal on desktop and full-width in the mobile menu |
className | string | – | Extra classes for the outer <header> |
type NavLink = { label: string; href: string };
type FeaturedProject = {
title: string;
category: string;
href: string;
image: { src: string; alt: string };
};
type MegaMenu = {
label: string;
overviewLabel: string;
overviewHref: string;
links: NavLink[];
projects: FeaturedProject[];
};
type CtaLink = { label: string; href: string };<header> (onMouseLeave) or moves onto a regular nav link.megaMenu is set; open and closed states are pure CSS transitions (visible/invisible plus translate and opacity), not a conditional render, so it stays SSR-friendly.ChevronDown next to the trigger rotates 180 degrees while the panel is open.open state) is conditionally rendered and toggled by the hamburger button; it lists the mega menu's overview link and its links in an indented sublist above the regular links, followed by a full-width CTA.