Measured entry

ruixen-promote-header

navbarunclassified

A shadcn registry header for a Next.js client app, combining a promotion strip, sticky navigation, resources flyout, search field, theme toggle, calls to action, and a mobile drawer. It uses React, Next.js link and pathname APIs, Tailwind utility classes, browser theme storage, and a remotely hosted logo; lucide-react is declared but not used in the source.

Specimen
Harness screenshot of ruixen-promote-header at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-promote-header at 768 pixels wide
Harness screenshot at 768 pixels wide. This viewport scrolled sideways.
Harness screenshot of ruixen-promote-header 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-promote-header
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 768
Axe critical0
Axe serious0
Axe moderate0
Axe minor1
Gzip marginal47.3 KB (112.7 KB build, 65.4 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A feature-complete starting point for a Next.js marketing or docs header, and it builds and mounts without provider setup. Adopt it only with an integration pass: fix the intermediate-width overflow, wire search, replace the remote logo and fixed content, and remove the redundant accessible image text.

Use it if

  • You need an app or documentation header with an announcement, resource links, search affordance, and account actions in one component.
  • Your project already uses Next.js routing, Tailwind utilities, and class-based dark mode.
  • You are prepared to replace the fixed navigation, destinations, promotional copy, and remote logo with product data.
  • You want a separate mobile drawer with quick links and theme controls included.

Skip it if

  • Your app is not on Next.js and you do not want to replace its link and pathname integrations.
  • You need a search box that already performs a search; this one is only visual.
  • You need dependable tablet-width behavior without layout work, since the verified intermediate viewport overflows.
  • You cannot accept a header that mutates the document theme class and browser theme storage directly.
  • You need self-hosted branding or cannot audit and replace the externally loaded logo.

Install

Installation record for ruixen-promote-header
Declared dependencieslucide-react
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn project, add Tailwind CSS with the utility and dark-mode configuration used here, keep the file as a client component, and provide Next.js link and pathname APIs. Otherwise replace those imports with your router or native anchors. Add the declared lucide package only if your registry tooling requires it; the component itself uses inline icons. Replace the remote logo, connect search behavior, and ensure the page exposes the main-content target used by the skip link.

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.