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.
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
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
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.mdThe index of every part is at /llms.txt.