Measured entry
ruixen-banner-countdown
A client-side React countdown banner shipped as a single shadcn registry component. It renders rolling day, hour, minute, and second pairs, plus an optional link and dismiss action. It relies on Tailwind theme utilities, lucide-react, a local cn helper backed by clsx and tailwind-merge, and global digit-animation keyframes that the registry item does not include.



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 | 32.0 KB (97.5 KB build, 65.5 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 1m 11s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ruixen/banner-countdown.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused promo banner with useful callbacks, clean responsive wrapping, and no provider requirement. It is a sound copy-in choice for an existing Tailwind system, but it needs a shadcn-style setup and extra global keyframes before the rolling digits are complete.
Use it if
- You need a dismissible promotion or launch banner that counts down to a client-supplied date.
- You want an optional call-to-action link and callbacks for expiration and dismissal.
- Your Tailwind app already uses shadcn-style theme tokens and a shared cn utility.
Skip it if
- You need server-authoritative timing that is resistant to device clock changes or background-tab throttling.
- You need dismissal to persist across reloads without adding your own storage logic.
- You want a drop-in component for a non-Tailwind codebase or cannot add the missing animation keyframes.
Install
| Declared dependencies | lucide-react, clsx, tailwind-merge |
|---|---|
| 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 Tailwind CSS and the foreground, muted-foreground, and border theme tokens; install lucide-react, clsx, and tailwind-merge; create a cn helper; configure the local import alias or replace it with a relative path; and define the digit-in and digit-out keyframes referenced by the component. The file must run as a React client component.
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 card pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- tailark-veil-content-1minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 17.6KB
- Bare
- pass
- Prov
- NO
- tailark-veil-content-2minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 17.6KB
- Bare
- pass
- Prov
- NO
- tailark-mist-content-3minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 24.1KB
- Bare
- pass
- Prov
- NO
- neobrutalism-cardbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 29.6KB
- Bare
- pass
- Prov
- NO
- neobrutalism-ncardbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 29.6KB
- Bare
- pass
- Prov
- NO
- reui-icon-stackminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 30.1KB
- Bare
- pass
- Prov
- NO