Malay Patel

Hold To Confirm

Component 18

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

    51
  • Balloon Button

    Balloon Button

    38
  • Fold Toolbar

    Fold Toolbar

    34
  • Otp Input

    Otp Input

    14
  • Marquee

    Marquee

    10
  • Aurora

    Aurora

    10
  • Testimonial Carousel

    Testimonial Carousel

    4
  • Segmented Control

    Segmented Control

    4