About
A destructive-action button that has to be held down; a fill grows across it and drains back if released early. Free component from uibrik (uibrik.com).
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hold To Confirm to your project and fits it to your theme.
Code
How Hold To Confirm is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { HoldToConfirm } from "@/components/ui/hold-to-confirm";
const props = {
label: "Hold to delete",
doneLabel: "Deleted",
fill: "sweep" as "sweep" | "rise" | "center",
color: "#dc2626",
size: "md" as "sm" | "md" | "lg",
icon: true,
duration: 1.2,
resetAfter: 1.6,
radius: 14,
};
export default function Demo() {
return (
<div className="flex h-screen w-full items-center justify-center">
<HoldToConfirm {...props} />
</div>
);
}








