Navigation Menu

Grouped navigation with shared animated panels, descriptive links and keyboard controls.

Installation

Install the shared package once in your Exact app. This version is a beta.
bun add --exact @rightui/ui@0.4.0-beta.4
The Exact compiler requires Bun 1.4.2, regardless of which package manager installs the package.
Complete the font, app metadata and root provider setup (required for both installation methods).
Import
use NavigationMenuEntry, NavigationMenu, NavigationMenuSection, NavigationMenuSections from "@rightui/ui"

Usage

Use NavigationMenu for one trigger, or NavigationMenuSections with NavigationMenuSection for grouped links. Choose list or grid layout, use empty entries for direct links, and pass the reduced-motion preference.

Keyboard

Arrow keys move between triggers and links. Enter or Arrow Down opens a section. Escape closes the panel and returns focus to its trigger.

API Reference

Properties from the component source. State lives in your component; actions receive the updated value.
NavigationMenu.id
string
NavigationMenu.label
string
NavigationMenu.entries
NavigationMenuEntry[]
NavigationMenu.reduced
bool
NavigationMenuSections.id
string
NavigationMenuSections.label
string
NavigationMenuSections.sections
NavigationMenuSection[]
NavigationMenuSections.reduced
bool