A minimal bar with the brand on the left and a single Menu word beside a CTA on the right; the word drops a full-width panel of three link columns over a bottom row of office locations and social links. The same panel serves every viewport and stays in the markup, toggled with CSS.
A minimal bar with the brand on the left and a single Menu word next to a CTA on the right. The word drops a full-width panel with three link columns and a bottom row of office locations and social links, and the same panel serves phones and desktops alike.
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/navbar104?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://beste.dev/r-base/navbar104?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/navbar104.tsx plus the shadcn button primitive it uses.
The installed file exports navbar104Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.
import { Navbar104, navbar104Demo } from "@/components/beste/block/navbar104";
export default function Page() {
return <Navbar104 {...navbar104Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Navbar104 } from "@/components/beste/block/navbar104";
export default function Page() {
return (
<Navbar104
brand="Meridian"
columns={[
{
title: "Studio",
links: [
{ label: "Work", href: "/work" },
{ label: "Services", href: "/services" },
],
},
{
title: "Company",
links: [
{ label: "About", href: "/about" },
{ label: "Careers", href: "/careers" },
],
},
]}
locations={[
{ city: "Lisbon", address: "Rua da Prata 12" },
{ city: "Berlin", address: "Torstrasse 140" },
]}
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", locations: "Locations", socials: "Follow" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
brand | string | – | Wordmark on the left |
columns | LinkColumn[] | [] | Three link columns inside the panel |
locations | Location[] | [] | City and address pairs in the bottom row |
socials | NavItem[] | [] | Social links in the bottom row, each with an arrow |
button | ActionButton | – | CTA beside the Menu word; moves into the panel below sm |
labels | { menu?: string; close?: string; locations?: string; socials?: string } | {} | The toggle word in both states and the two bottom row headings |
className | string | – | Extra classes for the outer <header> |
type LinkColumn = {
title: string;
links: NavItem[];
};
type Location = {
city: string;
address: string;
};
type NavItem = {
label: string;
href: string;
};
type ActionButton = {
label: string;
href: string;
variant?: "default" | "outline" | "ghost" | "secondary";
};invisible opacity-0 to visible opacity-100, with a small motion-safe: lift), so every link is in the HTML before any script runs.aria-expanded, aria-controls pointing at the panel and an aria-label from labels, and it opens on hover as well as on click.labels.menu and labels.close by stacking both words in one grid cell and cross-fading them, so the button never changes width.calc(100vh - 4rem) and scrolls on its own, which is what lets the same full-width panel work under the bar on a phone.sm and repeated inside the panel instead, so it stays reachable without crowding the bar.