Measured entry

shadcn-navigation-menu

navbarunclassified

A source-copy React navigation menu built on the Radix navigation primitive. It ships styled with Tailwind utility and theme classes, and imports the shadcn cn helper, CVA for trigger styles, and a Lucide chevron icon. Its viewport supports flyout content and can be disabled for directly positioned panels.

Specimen
Harness screenshot of shadcn-navigation-menu at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of shadcn-navigation-menu at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-navigation-menu at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for shadcn-navigation-menu
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal43.8 KB (109.3 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 948ms
error during build:
[vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-c1aa128cdfa1/src/cut/components/ui/navigation-menu.tsx".

Verdict

A sound desktop flyout foundation that builds and mounts without special providers, but it is not ready to drop into a responsive production header unchanged. Fix the hidden-focus accessibility fault and supply a mobile navigation treatment before adopting it broadly.

Use it if

  • You need an accessible interaction foundation for a desktop product or documentation navbar with flyout sections.
  • Your React app already uses Tailwind theme tokens and is comfortable owning copied component source.
  • You want composable triggers, links, content panels, indicators, and an optional shared viewport.

Skip it if

  • This menu must work unchanged as the primary navigation on narrow phone layouts, since the tested example overflows there.
  • Your release gate rejects serious accessibility findings, since the mounted menu leaves a focusable element inside hidden content.
  • You want a dependency-light static link row without Radix behavior, flyout state, or animation utilities.

Install

Installation record for shadcn-navigation-menu
Declared dependenciesradix-ui, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add Radix UI, class-variance-authority, Lucide React, clsx, and tailwind-merge; provide the cn utility; configure Tailwind with the referenced theme tokens and animation utilities; and replace the shadcn path alias or configure an equivalent alias.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Author repository

github.com/shadcn-ui/ui
License
MIT
Record published
2026-08-16

Alternatives

Other published entries for the navbar pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.