For product families: the brand is a button with an up-down chevron that drops a floating switcher of sibling products, each with an initial-letter mark, a name, a one-liner and a check on the current one, followed by links and buttons. On a phone the menu is a left drawer that opens with the product switcher on top, then the links and the buttons. Panels stay in the markup and are toggled with CSS.
A sticky bar for a family of products. The brand itself is a button with an up-down chevron: it drops a floating switcher listing every sibling product with an initial-letter mark, a name and a one-liner, the current one marked with a check, and an arrow link to the full catalogue. Links and buttons follow. On a phone the menu is a left drawer over a scrim that opens with the product switcher on top, then the links and the buttons at its foot.
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/navbar116?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://beste.dev/r-base/navbar116?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/navbar116.tsx plus the shadcn button primitive it uses.
The installed file exports navbar116Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.
import { Navbar116, navbar116Demo } from "@/components/beste/block/navbar116";
export default function Page() {
return <Navbar116 {...navbar116Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Navbar116 } from "@/components/beste/block/navbar116";
export default function Page() {
return (
<Navbar116
brand="Alder"
products={[
{ name: "Alder Forms", description: "Surveys that feel like a conversation.", href: "/forms" },
{ name: "Alder Sites", description: "Pages your whole team can edit.", href: "/sites", current: true },
]}
allProducts={{ label: "All Alder products", href: "/products" }}
links={[
{ label: "Templates", href: "/templates" },
{ label: "Pricing", href: "/pricing" },
]}
actions={[
{ label: "Sign in", href: "/login", variant: "ghost" },
{ label: "Build a site", href: "/signup" },
]}
labels={{ switcher: "Switch product", open: "Open menu", close: "Close menu", products: "Products" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
brand | string | – | Fallback name for the brand button when no product is marked current |
products | Product[] | [] | Sibling products listed in the switcher |
allProducts | NavItem | – | Arrow link at the foot of the switcher |
links | NavItem[] | [] | Plain links after the brand button |
actions | ActionButton[] | [] | Buttons on the right, repeated at the foot of the drawer |
labels | { switcher?: string; open?: string; close?: string; products?: string } | {} | Accessible names for the switcher and the drawer, and the heading above the product list |
className | string | – | Extra classes for the outer <header> |
type Product = {
name: string;
description: string;
href: string;
current?: boolean;
};
type NavItem = {
label: string;
href: string;
};
type ActionButton = {
label: string;
href: string;
variant?: "default" | "outline" | "ghost" | "secondary";
};aria-hidden and inert.current, with a mark built from the first letter after the family name ("Alder Sites" becomes S); the same product carries aria-current="page" and a check in both lists.aria-expanded and aria-controls, and closes on mouse leave, Escape, a pointer down outside the header or a click on a product.