Navbar
v1.0.15Updated 19 Oct 2026Responsive marketing / public-site top navigation (logo + links + CTA + mobile hamburger) — distinct from the in-app Topbar chrome. Pass a logo, an array of links (each may carry children for a dropdown / mega-menu), and
Preview
Live · 12 stories▸Why this is recommendednavigationnavbarheadermarketing+4
The default, out-of-the-box Navbar.
- ✓Marketing / landing-page headers
- ✓SaaS public-site navigation with a mega-menu
- ✓Hero pages needing a transparent-on-scroll bar
- Desktop logo / links / actions layout, mobile hamburger disclosure
- Links with children open a dropdown / mega-menu (icon + label + description grid)
- Variants: default (blur) / floating (inset rounded card) / bordered
- sticky pinning to the top of the viewport
- transparent overlay on a hero that turns solid on scroll
- Active link state
- Proper landmarks (header + nav aria-label), keyboard accessible (Esc to close)
- Client-side routing: pass `linkComponent` (next/link, React Router Link) and every row that has an href renders through the host app link component instead of a plain anchor, which would reload the whole document (fb_bf7dc63a), across the brand, desktop links, dropdown panels and the mobile sheet
- ✕In-app top chrome (use Topbar)
- ✕Left-hand app navigation (use Sidebar)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
logoBrand mark rendered on the left
—linksPrimary links; each may carry children for a mega-menu
—actionsRight-aligned actions (e.g. Login / Sign-up)
—stickyPin to the top of the viewport (default true)
—variantVisual treatment
—transparentOverlay on a hero; solid once scrolled
—linkComponentThe host app link component for the brand, the desktop links, the dropdown panel rows and the mobile sheet. NavbarLink.onClick and NavbarMenuItem.onClick receive the click EVENT. Slots: navbar-logo, navbar-link, navbar-menu-link. MCP feedback fb_bf7dc63a.
—