Measured entry
ruixen-badge-button-combo
buttonliquid-glassmotion on file
A client-side React button that pairs a text label with an animated count or status chip. It ships as a shadcn registry item but is self-contained, using injected CSS and inline styles rather than shared UI utilities. It depends on Motion for hover, press, and badge transitions, and can use the browser audio API for click feedback.



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 | flagged at 375 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 63.2 KB (128.7 KB build, 65.5 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A polished, focused count-or-status action that builds and mounts without shadcn infrastructure. The narrow-layout overflow, Motion cost, default click sound, and restricted button API make it better for deliberate placements than as a general button primitive.
Use it if
- You need a compact action with a changing count or short status label.
- Your interface already uses glass-like controls and spring motion.
- You want optional click audio that can be disabled through a prop.
Skip it if
- The control must fit reliably in a crowded phone-width row; the verified demo overflowed at its narrow viewport.
- You need a form-safe button with a configurable type, disabled state, or broader native button props.
- Your bundle budget does not justify adding Motion for one small control.
- Your product avoids synthesized interaction sounds or injected component-level styles.
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 the Motion package, copy the client component into your source tree, and ensure client components and the browser audio API are supported. No shadcn utilities, theme provider, or icon package is required.
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