Measured entry

tripled-native-hover-card-shadcnui

avatarminimal-flatmotion on file

An animated profile avatar that expands into an overlaid card with a name, handle, bio, and profile action. It ships as a client-side React registry component styled with Tailwind classes, and relies on Framer Motion plus local shadcn-style Avatar, Button, and class-merging utilities.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-native-hover-card-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-native-hover-card-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-native-hover-card-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-hover-card-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal76.8 KB (142.3 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 955ms
error during build:
[vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-ae4697aa5c6e/src/components/ui/button.tsx".

Verdict

A polished fit for an existing shadcn-style app, with sensible keyboard and reduced-motion behavior. It does not mount bare and needs a shadcn-style setup. The hover-led trigger and sizable animation dependency make it a weaker default for touch-first or lean interfaces.

Use it if

  • You need compact profile previews in a desktop-oriented people list or directory.
  • Your app already has shadcn-style primitives, Tailwind theme tokens, and Framer Motion.
  • You want keyboard focus, escape-to-close behavior, and reduced-motion handling built into the interaction.

Skip it if

  • Your experience is touch-first, since the card is primarily opened by hover and has no explicit tap handler.
  • You want a lightweight avatar without bringing in an animation runtime and supporting UI primitives.
  • The expanded overlay must remain inside narrow containers or avoid covering nearby content.
  • You need a semantic link or native button as the avatar trigger without adapting the component.

Install

Installation record for tripled-native-hover-card-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

In a non-shadcn project, add Tailwind with the expected theme tokens, configure the local import alias, provide compatible Avatar and Button primitives plus the class-merging helper, and install React, Framer Motion, Radix UI, class-variance-authority, clsx, and tailwind-merge.

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