Measured entry
ruixen-banner-announcement
A client-side React announcement strip delivered as a shadcn registry component. It supports an optional badge, link, and dismiss control, with local entrance and collapse state. It depends on Tailwind utility classes, a project cn helper imported through the standard alias, and Lucide icons.



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 | 28.1 KB (93.5 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 34.62s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/banner-announcement.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused, adaptable banner with clean props and a working dismiss transition. It needs a shadcn-style setup because the bare component cannot resolve its cn utility import. The shimmer also requires project keyframes that are not included in the registry item.
Use it if
- You need a compact site-wide notice with an optional badge and direct call to action.
- You want dismissal to last only until the component remounts.
- Your app already uses shadcn conventions, Tailwind utilities, and Lucide icons.
Skip it if
- Dismissal must persist across navigation or later visits without adding storage and state wiring.
- Your design system does not use Tailwind or the shadcn cn utility pattern.
- You need richer actions, scheduling, targeting, or announcement rotation built in.
- You cannot add the missing banner shimmer keyframes or prefer no decorative motion.
Install
| Declared dependencies | lucide-react |
|---|---|
| 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 a cn class-merging helper, configure the source alias or replace that import, install Lucide React, and ensure Tailwind processes the component classes. Define the banner-shimmer keyframes if you want the sweep effect; otherwise remove that animation class.
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 cta pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- meraki-cta-simpleminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 17.7KB
- Bare
- pass
- Prov
- NO
- hyperui-ctas-4editorial
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- meraki-cta-gridminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- meraki-cta-formminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- hyperui-ctas-2editorial
- Renders
- YES
- A11y
- 0
- Gzip
- 18.0KB
- Bare
- pass
- Prov
- NO
- meraki-cta-cardminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 18.0KB
- Bare
- pass
- Prov
- NO