About
A button that requires a click, double-click, press-and-hold, or slide gesture to confirm a destructive or irreversible action, with built-in undo and async pending states.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Confirm Button to your project and fits it to your theme.
Code
How Confirm Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { ConfirmButton } from "@/components/ui/confirm-button";
export default function ConfirmButtonDemo() {
return (
<ConfirmButton
variant="destructive"
gesture="click-again"
onConfirm={() => console.log("Deleted")}
>
Delete project
</ConfirmButton>
);
}













