Measured entry
shadcn-navigation-menu
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.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | flagged at 375 |
| Axe critical | 0 |
| Axe serious | 1 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 43.8 KB (109.3 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written 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
| Declared dependencies | radix-ui, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no 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/uiAlternatives
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.
- hyperui-headers-4editorial
- Renders
- YES
- A11y
- 0
- Gzip
- 19.1KB
- Bare
- pass
- Prov
- NO
- kibo-dialog-stackminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 33.4KB
- Bare
- pass
- Prov
- NO
- ruixen-floating-navbarunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 59.9KB
- Bare
- pass
- Prov
- NO
- ruixen-hover-gradient-navbargradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 60.9KB
- Bare
- pass
- Prov
- NO
- ruixen-expandable-menu-navbarunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 61.8KB
- Bare
- pass
- Prov
- NO
- hextaui-cardminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 26.7KB
- Bare
- fail
- Prov
- NO