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.



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 | 1 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 74.7 KB (140.2 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written 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
| Declared dependencies | lucide-react, motion, radix-ui, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no 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.
Author repository
github.com/kokonut-labs/kokonutuiAlternatives
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