Measured entry
kokonut-attract-button
buttondark-futuristicmotion on file
A client-side React call-to-action that pulls a scattered particle field into a violet button on hover or touch and swaps its label during the interaction. It ships as a shadcn registry component and depends on React, Motion, Lucide, the shadcn Button primitive, Tailwind utility classes, and the local cn helper.



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 | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 70.5 KB (135.9 KB build, 65.4 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 2m 16s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/kokonutui/attract-button.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused novelty button that builds, mounts, and stays within the tested viewports, with no detected accessibility violations. The interaction is legible on pointer and touch, but its dependency cost and wide particle field limit it to occasional hero use. It needs a shadcn-style setup rather than working in a bare React project.
Use it if
- You want one playful focal action in a landing page or product reveal.
- Your app already uses shadcn conventions, Tailwind utilities, Motion, and Lucide.
- You can give the surrounding layout enough visual space for particles to spread around the control.
Skip it if
- You need a restrained button for dense forms, tables, or repeated actions.
- Your motion policy requires an explicit reduced-motion fallback.
- You want to avoid the substantial dependency cost of Motion for a single control.
- Your design cannot accommodate particles drawing outside the button bounds.
Install
| Declared dependencies | lucide-react, motion, radix-ui |
|---|---|
| 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 Motion and Lucide, provide a compatible Button component, create the cn class-merging helper, configure the at-sign path alias, and ensure Tailwind processes the supplied utility classes. Preserve the client-component boundary in frameworks that render on the server.
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