Measured entry
kokonut-hold-button
buttondark-futuristicmotion on file
A client-side press-and-hold button with an animated fill, release label, five semantic color variants, and matching Lucide icons. It ships as a shadcn registry component and builds on React, Motion, class-variance-authority, Tailwind utility classes, the registry Button primitive, and a 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 | 1 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 71.5 KB (136.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 9s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/kokonutui/hold-button.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A polished interaction shell, but not a complete confirmation control: consumers must wire completion semantics, keyboard behavior, and a contrast fix. It needs a shadcn-style setup and does not mount in a bare React project because its aliased Button and utility imports are assumed.
Use it if
- You want visible hold progress for a destructive or high-friction control.
- Your app already uses shadcn-style aliases, Button primitives, and Tailwind utilities.
- You can add the actual completion behavior and define what cancellation should do.
Skip it if
- You need a ready-made hold-to-confirm callback, because completion only finishes the animation and does not fire a dedicated action.
- You require equivalent keyboard interaction without extending the pointer and touch handlers.
- Your accessibility bar rejects the detected text contrast issue.
- You want a small standalone control without Motion, icon, and registry primitive dependencies.
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 |
For a non-shadcn project, add React client-component support, Tailwind utilities, Motion, Lucide React, class-variance-authority, and the Radix-backed Button primitive. Also provide the cn helper and matching path aliases, or replace both aliased imports with local equivalents.
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