Skip to content
Sign upGet access
MicrointeractionsHold deleteMenu

Hold delete (Pro)

ProIncluded in $99

A destructive button you hold until its dithered segments lock.

ProHold and the dithered segments charge with a countdown; let go early and it springs back, hold to the end and every segment locks in a ripple.

The button's face is a bar of segments drawn in dithered cells. Holding charges them left to right, each one flashing as it lights and the lit part crawling in two tones, while the label counts the seconds down. In the last quarter the button trembles a little. Let go early and the charge springs back. Hold to the end and every segment locks solid in a ripple, and the label becomes a drawn check.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/hold-delete

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { HoldDelete } from "@/components/ui/chatcn/pro/hold-delete"

<HoldDelete onConfirm={() => deleteProject(id)} />

Props

PropTypeNotes
onConfirm() => voidWhen the hold completes
holdMsnumberDefault 1500
donebooleanTurn off to drain it and arm it again
label / doneLabelReactNode
segmentsnumberDefault 18

Keyboard

KeyAction
Hold Space or EnterCharge it

Accessibility

  • A real button; the countdown and the result are announced.

Motion

  • Lock ripples 22 ms per segment; release springs back. Reduced motion: no crawl or tremble.