Skip to content
caliper ui pro docs

Navbar editions

Four site navbars: a mega menu whose preview cell follows the link you point at, a floating pill that draws in and frosts as the page scrolls, a docs bar with an announcement and a ⌘K search, and a sheet with nested levels for deep sites. Each has a phone menu that traps focus and closes on Escape.

Pro

The month-end close, done by Thursday.

Halden posts, reconciles and locks your books from one checklist. Scroll, open a menu, or try the keyboard.

When to use

  • The top of a marketing or docs site.
  • A product with more destinations than fit in a row of links.

When not to use

  • Application chrome with a sidebar; use the app shell.
  • Two of them on one page.
  • A simple bar of five links; use `SiteHeader`.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/navbar-editions

Adds its 13 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

MegaNavbar

4 props
PropTypeDefault
brand *ReactNode—
items *readonly MegaItem[]—
actionsReactNode—
classNamestring—

PillNavbar

6 props
PropTypeDefaultDescription
brand *{ mark: ReactNode; name: string; href?: string | undefined; }—
links *readonly NavbarLink[]—
action{ label: string; href: string; }—
scrollRootRefObject<HTMLElement | null>—
thresholdnumber24Pixels scrolled before it condenses.
classNamestring—

CommandNavbar

7 props
PropTypeDefaultDescription
brand *ReactNode—
links *readonly NavbarLink[]—
announcementAnnouncement—One notice above the bar, e.g. a launch with a link.
commands *readonly CommandItem[]—What the palette searches.
searchLabelstring"Search"e.g. "Search docs".
actionsReactNode—
classNamestring—

SheetNavbar

6 props
PropTypeDefaultDescription
brand *ReactNode—
items *readonly SheetNavItem[]—
quickLinksreadonly NavbarLink[]—Shown in the bar on wide bands, e.g. Pricing and Docs.
action{ label: string; href: string; }—
menuLabelstring"Menu"
classNamestring—

Keyboard

  • Keyboard and focus come from Radix dialog, navigation-menu: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.

Accessibility

It is built on native elements and keeps aria-label, aria-hidden, aria-describedby, aria-current, aria-keyshortcuts and aria-expanded in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/navbar-editions.md

The index of every part is at /llms.txt.

More in Hero, FAQ & contact