Skip to content
loseta

Components / Navigation

Navigation Menu

Displays site navigation with popover panels.

Status stableInstalls popover-primitive

Installation

pnpm dlx loseta add navigation-menu
npx loseta add navigation-menu

Examples

With icons

Right-to-left

Accessibility and behavior

  • nav > ul > li. Triggers use aria-expanded and aria-controls; panels are [data-popover] with links. Link parts use [data-slot="icon"], [data-slot="title"] and [data-slot="description"]. The trigger chevron rotates while expanded. Open/close and keyboard navigation are consumer JavaScript; there is no built-in mobile layout.

Files

components/navigation-menu.cssbase
styles/nova/navigation-menu.cssstyle

Install contract

The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.

← Back to components

loseta is MIT licensed. Built with native CSS, no runtime. Inspired byshadcn/ui.