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.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 63.3 KB (128.8 KB build, 65.5 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written 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
| Declared dependencies | motion |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no 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.
Author repository
github.com/ruixenui/ruixen.comAlternatives
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.
- neu-buttonneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- clay-buttonclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- tripled-animated-radio-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glow-link-buttonliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 58.9KB
- Bare
- pass
- Prov
- NO
- tripled-mood-gradient-button-shadcnuigradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 59.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glass-ai-cardliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 59.5KB
- Bare
- pass
- Prov
- NO