A sticky frosted navbar with two mega items, each dropping a full-width panel of three small-caps link groups in serif type beside a soft featured card with a photograph, an eyebrow and a lifting arrow link. Every panel stays in the markup and is shown with CSS; a light mobile menu groups the same links.
Two mega menus in one bar: each opens a full-width panel of grouped links beside a featured card with its own photograph, with plain links and a pill alongside and a nested mobile menu.
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/navbar81?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/navbar81?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/navbar81.tsx plus the button22 sliding-marker pill it uses.
The installed file exports navbar81Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.
import { Navbar81, navbar81Demo } from "@/components/beste/block/navbar81";
export default function Page() {
return <Navbar81 {...navbar81Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Navbar81 } from "@/components/beste/block/navbar81";
export default function Page() {
return (
<Navbar81
brand="Altair"
megas={[
{
label: "Sessions",
href: "/sessions",
groups: [
{
title: "One to one",
links: [{ label: "Individual therapy", href: "/therapy" }],
},
],
featured: {
eyebrow: "Start here",
title: "A twenty-minute call, free",
href: "/call",
linkLabel: "Book the call",
image: { src: "/photos/pines.jpg", alt: "Pine trees in soft morning fog" },
},
},
]}
items={[{ label: "Fees", href: "/pricing" }]}
button={{ label: "Book", href: "/book" }}
labels={{ open: "Open menu", close: "Close menu" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
brand | string | – | Wordmark on the left |
megas | MegaItem[] | [] | Items that open a panel; one panel each |
items | NavItem[] | [] | Plain links beside them |
button | ActionButton | – | Pill action, repeated at the foot of the mobile menu |
labels | { open?: string; close?: string } | {} | Accessible names for the menu toggle |
className | string | – | Extra classes for the outer <header> |
type MegaItem = {
label: string;
href: string;
groups: LinkGroup[];
featured: Featured;
};
type LinkGroup = {
title: string;
links: NavItem[];
};
type Featured = {
eyebrow: string;
title: string;
href: string;
linkLabel: string;
image: { src: string; alt: string };
};
type NavItem = {
label: string;
href: string;
};
type ActionButton = {
label: string;
href: string;
tone?: "primary" | "light" | "dark" | "outline";
};null, which closes whichever panel was open as the pointer moves along the bar.flatMap, so a two-level menu becomes one indented list per mega item rather than a nested accordion nobody wants to operate with a thumb.transitionDelay values from the index, reset to 0ms on close.Link around the whole tile, with its arrow lifting only under motion-safe:.