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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-badge-button-combo at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of ruixen-badge-button-combo at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-badge-button-combo 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-badge-button-combo
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal63.2 KB (128.7 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten 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

Installation record for ruixen-badge-button-combo
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 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.

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.