Skip to content

Navigation Menu

Free

The top navigation of a site: links and triggers that open one shared panel of link cards, with nested and inline submenus.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Compose the list, the triggers, and the panels.

site-nav.tsx

NavigationMenu

<nav>
PropTypeDefaultDescription
From Base UINavigationMenu.RootBase UI docs
...props<nav> attributes—Every other attribute goes to the <nav>, with a ref.

NavigationMenuList

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

NavigationMenuItem

<li>
PropTypeDefaultDescription
From Base UINavigationMenu.ItemBase UI docs
...props<li> attributes—Every other attribute goes to the <li>, with a ref.

NavigationMenuIndicator

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

NavigationMenuTrigger

<button>
PropTypeDefaultDescription
From Base UINavigationMenu.TriggerBase UI docs
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

NavigationMenuContent

<div>
PropTypeDefaultDescription
From Base UINavigationMenu.ContentBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

NavigationMenuLink

<a>
PropTypeDefaultDescription
From Base UINavigationMenu.LinkBase UI docs
...props<a> attributes—Every other attribute goes to the <a>, with a ref.

NavigationMenuPositioner

<div>
PropTypeDefaultDescription
From Base UINavigationMenu.PortalBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

NavigationMenuViewport

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Put a NavigationMenuList in it, with one NavigationMenuItem for each entry.
  • Give a panel a width, because it is as wide as its content.
  • Pass render on NavigationMenuLink for a router link.
  • For the nav of an app, use a Sidebar.
  • For a list of actions, use a Menu.
TabMoves through the triggers, the top links, and the open panel.
← →Moves along the list.
EnterorSpaceor↓Opens a panel. In a vertical menu, use → in place of ↓.
EscCloses the panel.

It renders a nav. Base UI sets the expanded state on each trigger.

active on a link marks the current page with aria-current.

Panel
panel · ease-panel · the shared popup moves and resizes between triggers

Built with

Installs with Navigation Menu

  1. AddedNavigation Menu, with Button, Collapsible.
Open the release