Measured entry
ruixen-promote-header
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.



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 768 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 1 |
| Gzip marginal | 47.3 KB (112.7 KB build, 65.4 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written 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
| Declared dependencies | lucide-react |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no 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.
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