Rafael Porto

Hold to delete Button

Buttons

About

A simple hold to delete button

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hold to delete Button to your project and fits it to your theme.

Code

How Hold to delete Button is used: the demo's code. The component's own source comes with a free account.

Usage.tsx


import { DeleteButton } from "@/components/ui/hold-to-delete-button"

export default function Page() {
  const handleDelete = () => {
    console.log("Item deleted!")
  }

  const handleCancel = () => {
    console.log("Delete canceled")
  }

  return (
    <div className="flex min-h-screen items-center justify-center">
      <DeleteButton 
        onDelete={handleDelete}
        onCancel={handleCancel}
        holdDuration={2000}
      />
    </div>
  )
}

Dependencies

More by Rafael Porto

View all
  • AI Assistant Interface

    AI Assistant Interface

    462
  • To-do card

    To-do card

    239
  • Command Palette

    Command Palette

    215
  • Publish Button

    Publish Button

    127
  • Sign In

    Sign In

    97
  • AI Assistant Panel

    AI Assistant Panel

  • Sign In Card

    Sign In Card

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    32
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Split Button

    Split Button

    32