Measured entry

ruixen-navbar-user-menu

navbarunclassified

A compact client-side navbar that combines a logo, desktop links, notification control, avatar, and account dropdown. It ships as a shadcn registry component for Next.js and depends on lucide-react, Radix-backed shadcn button, avatar, and dropdown primitives, plus the usual cn utility and theme classes.

Specimen
Harness screenshot of ruixen-navbar-user-menu at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-navbar-user-menu at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-navbar-user-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 ruixen-navbar-user-menu
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical1
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal75.9 KB (141.3 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 43.19s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/navbar-user-menu.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A practical starting shell for a shadcn-based account navbar, with clean responsive mounting and sensible props. It needs a shadcn-style setup, and the unlabeled notification button plus contrast issue should be fixed before production use.

Use it if

  • You need a conventional authenticated app header with profile and logout actions already arranged.
  • Your Next.js project already uses shadcn primitives, path aliases, and Tailwind theme tokens.
  • You want navigation links to collapse away on narrow screens while account controls remain visible.

Skip it if

  • You need an accessible drop-in without first labeling the icon-only notification button and correcting the flagged contrast.
  • Your mobile experience needs access to the primary links, since this component hides them without providing a replacement menu.
  • You are not using Next.js or do not want to adapt its Link import and shadcn-specific project wiring.
  • You need a lightweight header and cannot justify bringing in the dropdown and icon dependency stack.

Install

Installation record for ruixen-navbar-user-menu
Declared dependencieslucide-react, radix-ui
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 lucide-react and Radix dropdown support, then supply equivalents for Button, Avatar, and DropdownMenu. Add or replace the cn helper, reproduce the Tailwind theme classes, and either provide Next.js Link or swap it for your router's link component.

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.

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.