Account Menu Bar

About this block

Account Menu BarPRO

A compact app bar with the brand and an environment pill, page links, a status dot with a short system status line and an initials avatar that opens a hand-built account dropdown (profile, billing, team, sign out) with arrow key navigation. On a phone the avatar raises a bottom sheet holding the account, the status and the page links. Both panels stay in the markup and are toggled with CSS.

A compact app bar for a signed-in product: the brand with an environment pill, page links, a status dot with a short system status line, and an initials avatar. The avatar opens an account dropdown with profile, billing, team and sign out. On a phone the same avatar raises a bottom sheet that holds the account, the status and the page 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.

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/navbar109?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

This installs the block to components/beste/block/navbar109.tsx; it needs no shadcn primitives.

Quick start

The installed file exports navbar109Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.

tsx
import { Navbar109, navbar109Demo } from "@/components/beste/block/navbar109";

export default function Page() {
  return <Navbar109 {...navbar109Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Navbar109 } from "@/components/beste/block/navbar109";

export default function Page() {
  return (
    <Navbar109
      brand="Harbor"
      environment="Production"
      links={[
        { label: "Overview", href: "/overview" },
        { label: "Deployments", href: "/deployments" },
        { label: "Logs", href: "/logs" },
      ]}
      status={{ label: "All systems normal", href: "/status" }}
      account={{
        name: "Nina Simone",
        email: "[email protected]",
        initials: "NS",
        items: [
          { label: "Profile", href: "/account", icon: "profile" },
          { label: "Billing", href: "/billing", icon: "billing" },
        ],
        signOut: { label: "Sign out", href: "/sign-out" },
      }}
      labels={{ account: "Account menu", close: "Close", navigation: "Navigate" }}
    />
  );
}

Props

PropTypeDefaultDescription
brandstring–Wordmark on the left
environmentstring–Text in the pill beside the brand
linksNavItem[][]Page links in the bar; a two-column grid in the mobile sheet
status{ label: string; href: string }–Status line with a dot, shown from lg up and in the mobile sheet
accountAccount–The avatar initials, the dropdown header and its links
labels{ account?: string; close?: string; navigation?: string }{}Accessible name of the avatar button, the sheet close button and the sheet links heading
classNamestring–Extra classes for the outer <header>
ts
type NavItem = {
  label: string;
  href: string;
};

type Account = {
  name: string;
  email: string;
  initials: string;
  items: AccountItem[];
  signOut?: NavItem;
};

type AccountItem = {
  label: string;
  href: string;
  icon?: "profile" | "billing" | "team" | "settings";
};

Behavior notes

  • The account dropdown, the mobile scrim and the bottom sheet are server-rendered and always in the markup; each is shown or hidden with CSS classes rather than mounted on demand.
  • The avatar opens on mouse hover or click; a pointerType check keeps a touch tap from opening and closing it in the same gesture. Below md the dropdown is hidden and the sheet takes over.
  • Arrow Down on the avatar opens the dropdown and focuses its first link; inside it Arrow Up and Down cycle the links and Home and End jump to either end.
  • Escape closes the menu and, when focus was inside the dropdown, returns it to the avatar; a click outside the header, a tap on the scrim and the pointer leaving the header also close it.
  • The status dot uses bg-primary, so it follows the theme rather than a fixed green; swap the class if you want a semantic color.

More Navigation blocks

View all Navigation
PRO

navbar118

Navbar With Contact Bar and Hanging Logo

PRO

navbar93

App Launcher Grid

PRO

navbar87

Icon Rail Flyouts

Get Pro