Malay Patel

Hold To Confirm

Component 14

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

    Halftone

    48
  • Balloon Button

    Balloon Button

    33
  • Fold Toolbar

    Fold Toolbar

    31
  • Marquee

    Marquee

    9
  • Aurora

    Aurora

    6
  • Otp Input

    Otp Input

    5
  • Copy Button

    Copy Button

    4
  • Segmented Control

    Segmented Control

    2