Measured entry

uilayouts-hovercard2

hover-effectgradient-glowmotion on file

A fixed-size profile card whose image expands and shifts from grayscale to color on hover while its caption gives way to a button. It ships as a shadcn registry TSX component styled with Tailwind classes, uses Next.js Image and lucide-react imports, and declares motion even though the source does not use it.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of uilayouts-hovercard2 at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of uilayouts-hovercard2 at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of uilayouts-hovercard2 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 uilayouts-hovercard2
BuildOK
MountOK
Console errors1
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal24.0 KB (89.4 KB build, 65.4 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

CONSOLE

Failed to load resource: the server responded with a status of 404 (Not Found)

BARE BUILD

Failed to load resource: the server responded with a status of 404 (Not Found)

Verdict

A usable visual starter, but not a drop-in product component. It builds and mounts without shadcn scaffolding, yet the demo content is ignored, the bundled portrait path is missing, narrow layouts overflow, and the reveal is hover-dependent. Choose it only if you plan to parameterize and harden it.

Use it if

  • You need a dark-friendly profile or team card with a simple image-led hover reveal.
  • Your project already uses Tailwind and can supply the expected local portrait asset.
  • The card will sit in a layout with enough width for its fixed sizing.

Skip it if

  • You need the supplied title or children to appear, because this component accepts no content props.
  • Your design must fit narrow phone screens without modifying the fixed card width.
  • The revealed action must work equally well for keyboard and touch users rather than relying on hover.
  • You want a reusable card with configurable image, name, role, and action behavior.

Install

Installation record for uilayouts-hovercard2
Declared dependenciesmotion
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn project, add Tailwind styling, lucide-react, and either Next.js Image or a standard image replacement. Provide the referenced portrait asset or make the image a prop. The registry declares motion, but this source does not use it, so it can be removed unless other code needs it. Add focus and touch behavior for the revealed action.

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.

License
MIT
Record published
2026-08-14

Alternatives

Other published entries for the hover-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.