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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-banner-newsletter at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-banner-newsletter at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-banner-newsletter 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-banner-newsletter
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal29.1 KB (94.5 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 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

Installation record for ruixen-banner-newsletter
Declared dependencieslucide-react
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

Alternatives

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.