Measured entry
ruixen-navbar-centered
A React client-side header with a logo, centered desktop navigation, and replaceable action controls. It ships as a shadcn registry component built around Next.js Link, Tailwind utility classes, the shared cn helper, and a registry Button backed by the declared Radix package.



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 | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 44.3 KB (109.7 KB build, 65.4 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 31.74s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/navbar-centered.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A sound, focused desktop navbar that builds, mounts, and stays within the tested viewports. It needs a shadcn-style setup and is best treated as a starting shell, since responsive navigation behavior is not included.
Use it if
- You need a compact marketing-site header with navigation centered independently of the logo and actions.
- Your app already uses Next.js, Tailwind, and shadcn-style component aliases.
- You want configurable links, logo content, and action controls without introducing a provider.
Skip it if
- You need a mobile menu, because the navigation links are simply hidden on smaller screens.
- Your header must support nested menus, account state, or complex keyboard-driven navigation.
- Your project does not use Next.js or Tailwind and you do not want to adapt its imports and styling conventions.
Install
| Declared dependencies | radix-ui |
|---|---|
| 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 Tailwind, the declared Radix package, a compatible Button component, and a cn class-merging helper. Configure the at-sign import aliases and Next.js Link, or replace those imports with local equivalents.
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/ruixenui/ruixen.comAlternatives
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