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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of kokonut-hold-button at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of kokonut-hold-button at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of kokonut-hold-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-hold-button
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal71.5 KB (136.9 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for kokonut-hold-button
Declared dependencieslucide-react, motion, radix-ui
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

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.