Malay Patel

Hold To Confirm

Component 5

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>
  );
}

Dependencies

More by Malay Patel

View all
  • Halftone Horizon

    Halftone Horizon

    52
  • Halftone

    Halftone

    46
  • Fold Toolbar

    Fold Toolbar

    31
  • Balloon Button

    Balloon Button

    31
  • Ascii Field

    Ascii Field

    12
  • Oil Slick

    Oil Slick

    11
  • Copy Button

    Copy Button

    4
  • Marquee

    Marquee

    3