Navigation Menu

Site navigation links, with panels that open from the bar.

Installation

  1. Add the registryOnce per project
  2. Add navigation-menu

Usage

Each NavigationMenuItem holds either a link or a trigger with content. Use navigationMenuTriggerStyle() to make a plain link match the triggers.

For menus of actions rather than links, use a Dropdown Menu or a Menubar.

Composition

Examples

With icons

Set active on the link to the current page.

Client-side routing

Pass your router's link to render.

Props

NavigationMenu also takes side, sideOffset, align and alignOffset to position the panel.

The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.