Measured entry

ruixen-confetti-button

buttonliquid-glassmotion on file

A client-side React celebration button shipped as a shadcn registry item. It embeds its liquid-glass styles, generates confetti particles on each click, and can play a short synthesized sound. It depends on React, Motion, and the browser audio API, with no provider required.

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

Verdict

A focused, portable celebration control that builds and mounts cleanly without a provider. The embedded styling makes adoption easy, but teams should add reduced-motion behavior and an explicit button type before using it broadly in forms.

Use it if

  • You need a celebratory call to action for a successful submission, reward, or milestone.
  • You want a self-contained button whose label, click callback, sound, and inline style can be customized.
  • Your interface already uses Motion or can justify adding it for animated feedback.

Skip it if

  • You need reduced-motion handling built into the component rather than adding it yourself.
  • The button will sit inside forms and you cannot add an explicit button type to prevent accidental submission.
  • Your product avoids decorative audio or cannot rely on the browser audio API.
  • You want a minimal interaction without adding Motion for a single control.

Install

Installation record for ruixen-confetti-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, install Motion, copy the component file, and keep it in a client-rendered boundary. No shared utility helpers, theme provider, or external stylesheet are required. Add an explicit button type and adapt the dark-theme selectors if your app uses different theme hooks.

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.