About
A hold-to-confirm destructive button with pointer capture, keyboard activation, cancellation, and reduced-motion support.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hold To Delete Button to your project and fits it to your theme.
Code
How Hold To Delete Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import { toast } from "sonner"
import HoldToDeleteButton from "@/components/ui/sona-hold-to-delete-button"
export default function HoldToDeleteButtonDemo() {
return (
<div className="flex items-center justify-center py-12">
<HoldToDeleteButton
onDelete={() => toast.success("Successfully deleted")}
/>
</div>
);
}
















