Measured entry
ruixen-banner-newsletter
inputunclassifiedmotion on file
A client-side React newsletter banner with an email field that morphs through loading and confirmation states, then dismisses itself. It ships as a shadcn registry TSX file styled with Tailwind utilities, uses lucide-react icons and a cn helper, and expects an async subscription callback for real delivery.



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 | 1 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 29.1 KB (94.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 37.05s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/banner-newsletter.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A polished, responsive micro-form with useful async states, but it needs a shadcn-style setup and is not production-ready unchanged. Add an accessible name to the submit button and require a real subscription callback before adopting it.
Use it if
- You want a compact signup prompt that can sit above or between page content.
- Your product can supply an async email subscription callback and wants loading, success, error, and dismissal behavior built in.
- Your app already uses shadcn conventions, Tailwind theme tokens, and lucide-react.
Skip it if
- You need a dependency-free form that can be copied into a plain React project without adapting imports and styles.
- You cannot patch the icon-only submit button with an accessible name before release.
- You need the signup confirmation to remain visible instead of automatically dismissing the banner.
- You cannot guarantee that every render receives a working subscription callback, since an omitted callback still produces a success state.
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 |
For a non-shadcn project, add lucide-react, Tailwind utilities and matching theme tokens, provide a cn class-merging helper at the expected alias or rewrite that import, and define the referenced animation keyframes. Wire onSubscribe to your newsletter service and add an accessible name to the submit control.
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 input pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- clay-inputclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- neu-search-inputneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.1KB
- Bare
- pass
- Prov
- NO
- clay-search-inputclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.3KB
- Bare
- pass
- Prov
- NO
- originui-comp-33minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 20.7KB
- Bare
- pass
- Prov
- NO
- hextaui-labelminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 31.3KB
- Bare
- pass
- Prov
- NO
- ruixen-circular-stepper-inputliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 61.1KB
- Bare
- pass
- Prov
- NO