A minimal bar with a wordmark, a Menu button and a call to action. Menu opens a fullscreen overlay split in two: five huge links rise in on the left, and on the right a photo cross-fades to whichever link is hovered or focused, with a contact block beneath it. On phones the same overlay stacks the photo above the links and the contact details. The overlay and every photo stay in the markup and are toggled with CSS.
A minimal bar with a wordmark, a Menu button and a call to action. Menu opens a fullscreen overlay split in two, five huge links on the left and a photo that cross-fades to the hovered link on the right with a contact block beneath, and on phones the same overlay stacks the photo above the links.
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://beste.dev/r/navbar96?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://beste.dev/r-base/navbar96?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/navbar96.tsx plus the shadcn button primitive it uses.
The installed file exports navbar96Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.
import { Navbar96, navbar96Demo } from "@/components/beste/block/navbar96";
export default function Page() {
return <Navbar96 {...navbar96Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Navbar96 } from "@/components/beste/block/navbar96";
export default function Page() {
return (
<Navbar96
brand="Northwind"
menu={[
{ label: "Projects", href: "/projects", image: { src: "/photos/tower.jpg", alt: "A glass tower" } },
{ label: "Studio", href: "/studio", image: { src: "/photos/office.jpg", alt: "A bright office" } },
{ label: "Contact", href: "/contact", image: { src: "/photos/lake.jpg", alt: "A mountain lake" } },
]}
contacts={[
{ label: "Email", value: "[email protected]", href: "mailto:[email protected]" },
{ label: "Studio", value: "14 Wharf Road, London" },
]}
socials={[
{ label: "Instagram", href: "https://instagram.com" },
{ label: "LinkedIn", href: "https://linkedin.com" },
]}
button={{ label: "Start a project", href: "/contact" }}
labels={{ menu: "Menu", close: "Close", openMenu: "Open menu", closeMenu: "Close menu" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
brand | string | – | Wordmark on the left |
menu | MenuLink[] | [] | The huge overlay links, each with the photo it shows on hover |
contacts | ContactLine[] | [] | Contact block under the photo; lines with href become links |
socials | NavItem[] | [] | Social links in the overlay foot |
button | NavItem | – | Call to action in the bar, repeated in the overlay foot on phones |
labels | { menu?: string; close?: string; openMenu?: string; closeMenu?: string } | {} | Visible text of the toggle and its accessible names in each state |
className | string | – | Extra classes for the outer <header> |
type MenuLink = {
label: string;
href: string;
image: { src: string; alt: string };
};
type ContactLine = {
label: string;
value: string;
href?: string;
};
type NavItem = {
label: string;
href: string;
};invisible opacity-0 to visible opacity-100), and the overlay is inert while closed so its links are not keyboard-reachable.motion-safe:, settle from scale-105. The active index follows both hover and focus on the links.transitionDelay values from the index, reset to 0ms on close.<nav> rather than the <header>, because backdrop-filter on the header would trap the fixed overlay inside the bar.order-first and the contact lines drop into the foot next to a full call to action.