Brand Switcher Bar

About this block

Brand Switcher BarPRO

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.

Upgrade Now

Installation

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

bash
npx shadcn add "https://beste.dev/r/navbar116?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
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.

Quick start

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.

tsx
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:

tsx
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" }}
    />
  );
}

Props

PropTypeDefaultDescription
brandstring–Fallback name for the brand button when no product is marked current
productsProduct[][]Sibling products listed in the switcher
allProductsNavItem–Arrow link at the foot of the switcher
linksNavItem[][]Plain links after the brand button
actionsActionButton[][]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
classNamestring–Extra classes for the outer <header>
ts
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";
};

Behavior notes

  • The switcher card and the mobile drawer are always rendered and toggled with CSS classes, so every product link is in the server-rendered HTML. Closed panels carry aria-hidden and inert.
  • The brand button shows the product marked 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.
  • The switcher opens on hover and on click with aria-expanded and aria-controls, and closes on mouse leave, Escape, a pointer down outside the header or a click on a product.
  • The drawer slides in from the left over a scrim; tapping the scrim, the close button, Escape or any link closes it, and body scroll is locked while it is open.

More Navigation blocks

View all Navigation
PRO

navbar106

Context Switcher Bar

PRO

navbar103

Single Menu Tabs Panel

PRO

navbar111

Partner Marks Bar

Get Pro