Measured entry

tripled-stats-counter-block-shadcnui

statsgradient-glowmotion on file

A client-rendered React stats section with count-up values, icon cards, gradient accents, hover states, and entrance motion. It ships as a shadcn registry block styled with Tailwind classes and relies on shadcn Badge and Card primitives, React, Framer Motion, Radix UI, and Lucide icons.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-stats-counter-block-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-stats-counter-block-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-stats-counter-block-shadcnui 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 tripled-stats-counter-block-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal74.3 KB (139.7 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 1m 31s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/badge.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

It builds, mounts, and stays within the tested layouts, but it needs a shadcn-style setup rather than dropping into a bare React app. Use it as a starting point after fixing the contrast issue; avoid it when dependency weight or reusable data inputs matter.

Use it if

  • You need a ready-made impact or company metrics section with animated count-up values.
  • Your app already has shadcn primitives, Tailwind theme tokens, and the expected import alias.
  • A fixed grid of promotional metrics fits the page and you are comfortable editing the local data array.

Skip it if

  • You need a lightweight static stats row and do not want Framer Motion in the dependency graph.
  • You require an accessibility-clean result without remediation, since the current muted text has a contrast violation.
  • You need reusable props or CMS-fed data, because the copy, values, icons, and styling are hardcoded.
  • Your project does not use shadcn conventions and you do not want to recreate its primitives, utility helper, aliases, and theme tokens.

Install

Installation record for tripled-stats-counter-block-shadcnui
Declared dependenciesframer-motion, react, radix-ui
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn app, install React, Framer Motion, Radix UI, and Lucide React. Add Tailwind theme tokens, the expected import alias, shadcn Badge and Card primitives, and their cn utility, then preserve the client-component boundary. The registry also declares the button primitive.

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 stats pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.