Measured entry

ruixen-hover-preview-button

buttonliquid-glassmotion on file

A client-side React button that reveals arbitrary preview content on mouse hover with spring animation and optional generated audio feedback. It ships as a shadcn registry item, carries its liquid-glass theme as injected inline CSS, and depends on Motion plus the browser Web Audio API when sound is enabled.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-hover-preview-button at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-hover-preview-button at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-hover-preview-button 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 ruixen-hover-preview-button
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal63.3 KB (128.8 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

It builds and mounts without framework scaffolding, and the checked accessibility scan is clean. Still, this is a desktop-oriented visual flourish rather than a complete action primitive: keyboard and touch preview behavior is absent, audio defaults on, and the blank widest-view capture leaves a responsive verification caveat.

Use it if

  • You need a compact desktop control that previews a small, read-only summary before the main action.
  • Your interface already uses Motion and can absorb another animated client component.
  • You want the preview body supplied as arbitrary React content rather than a fixed data shape.

Skip it if

  • Keyboard and touch users must receive the same preview, since it opens only from mouse enter events.
  • Your content security policy forbids injected inline styles.
  • You do not want hover interactions to create audio by default or to require browser audio handling.
  • You need a drop-in action button with click behavior and native button props forwarded by the component.

Install

Installation record for ruixen-hover-preview-button
Declared dependenciesmotion
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn React project, add Motion, copy the client component, and ensure your framework permits client components and injected inline styles. No provider or shared utility layer is required. Disable the sound prop if Web Audio feedback is unwanted.

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