Measured entry

tripled-native-likes-counter-shadcnui

statsminimal-flatmotion on file

A client-side React likes control that combines an animated heart and count, an avatar stack, and a hover or focus popup listing users. It ships as copy-in TSX from a shadcn registry and relies on Tailwind theme classes, shadcn Avatar and cn helpers, Framer Motion, Lucide icons, and React.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-native-likes-counter-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-native-likes-counter-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-native-likes-counter-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-native-likes-counter-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal77.9 KB (143.4 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 845ms
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-55d57359c802/src/cut/components/uitripled/native-likes-counter-shadcnui.tsx".

Verdict

It builds, mounts, and stays contained across the tested layouts, with useful interaction states and reduced-motion handling. Still, the contrast failure needs correction, and the copy-in source omits a direct icon dependency. It needs a shadcn-style setup before it will work in a bare app.

Use it if

  • You need one compact control for liking, showing social proof, and previewing who liked an item.
  • Your app can persist each interaction through the callback while accepting the component's immediate local count update.
  • You already use shadcn theme conventions and can supply user records plus an optional load-more callback.

Skip it if

  • You need liked and count values to remain fully controlled or to resync whenever their props change.
  • You want a lean static counter without an animation library and avatar primitives.
  • You cannot budget time to correct the detected text contrast problem and retest the popup.
  • You require a registry item whose declared dependencies cover every direct import.

Install

Installation record for tripled-native-likes-counter-shadcnui
Declared dependenciesframer-motion, react, radix-ui, clsx, tailwind-merge
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 React, Framer Motion, Lucide React, the Radix-backed Avatar primitive, clsx, and tailwind-merge. Provide the cn helper, configure Tailwind, and define the shadcn color, border, ring, background, accent, muted, and popover theme tokens used by the classes.

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.