Measured entry

kokonut-particle-button

buttondark-futuristicmotion on file

A client-side React button that briefly shrinks and emits randomized particles around the clicked control. It ships as a shadcn registry component and wraps the shadcn Button, relying on the cn utility, Tailwind classes, Motion, Lucide, and the underlying Radix-based button setup.

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

What the harness recorded

BARE BUILD

✗ Build failed in 1.78s
error during build:
[vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-28ac938c9a2c/src/components/ui/button.tsx".

Verdict

A polished micro-interaction with straightforward styling, but it is not ready for action handling as written: the exposed callbacks never fire and the empty demo has an accessibility failure. It also needs a shadcn-style setup before it can build or mount.

Use it if

  • You want a compact celebratory click effect on a noncritical action.
  • Your app already uses shadcn component aliases, Tailwind utilities, Motion, and Lucide.
  • You can supply visible button text and wire the action behavior yourself.

Skip it if

  • You need the supplied onClick or onSuccess callbacks to run, because this implementation currently ignores both.
  • You need a safe icon-only default, since rendering it without children produces an unnamed button.
  • You want a lightweight control without an animation library and shadcn infrastructure.
  • You need deterministic particle paths for visual tests or tightly directed motion.

Install

Installation record for kokonut-particle-button
Declared dependencieslucide-react, motion, radix-ui, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add a compatible Button primitive, the cn class-merging utility, matching import aliases, and Tailwind support for the referenced classes. Install Motion and Lucide React, include the Radix dependency expected by the button layer, and ensure the file runs as a client component. Also forward the click callback, invoke success behavior as intended, and always provide a discernible label.

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.