Malay Patel

Hold To Confirm

Component 22

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

    55
  • Balloon Button

    Balloon Button

    43
  • Fold Toolbar

    Fold Toolbar

    36
  • Otp Input

    Otp Input

    17
  • Marquee

    Marquee

    12
  • Aurora

    Aurora

    11
  • Segmented Control

    Segmented Control

    9
  • Testimonial Carousel

    Testimonial Carousel

    6