brijr/ui

Lab

Navigation Menu

npx shadcn@latest add @brijr/navigation-menu

With viewport

The default. One popup holds the open panel and resizes as you move between triggers. Use Pin open in the header to hold the pinned panels on this page open.

viewport · Products open
viewport · Resources open

Viewport slot

viewport also takes the element to render, so the shared popup can carry its own placement props. null works like false.

viewport={<NavigationMenuViewport sideOffset={20} />} · Products open

Without viewport

viewport={false}: each panel is its own popup, placed against its trigger.

viewport false · Products open

Side and align

Without a viewport, NavigationMenuContent takes side and align.

bottom · start
bottom · center
bottom · end
top · start
top · center
top · end

Links

title only
current
icon · stacked
icon · flex-row
icon end · mirror

Content

long panel
one link
many items

States

trigger disabled
openOnHover false
vertical · flex-col list