Edwin Vakayil

One Alert Dialog

Buttons 16

About

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

Code

How One Alert Dialog is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {
  AlertDialog,
  AlertDialogAction,
  AlertDialogCancel,
  AlertDialogContent,
  AlertDialogDescription,
  AlertDialogFooter,
  AlertDialogHeader,
  AlertDialogTitle,
  AlertDialogTrigger,
} from "@/components/ui/alert-dialog";
import { Button } from "@/components/ui/button";

export function DeleteCollectionAlert() {
  return (
    <AlertDialog>
      <AlertDialogTrigger asChild>
        <Button>Open dialog</Button>
      </AlertDialogTrigger>
      <AlertDialogContent>
        <AlertDialogHeader>
          <AlertDialogTitle>Delete this item?</AlertDialogTitle>
          <AlertDialogDescription>
            This action will permanently remove the item from your workspace,
            and you will not be able to recover it later.
          </AlertDialogDescription>
        </AlertDialogHeader>
        <AlertDialogFooter>
          <AlertDialogCancel>Cancel</AlertDialogCancel>
          <AlertDialogAction className="bg-red-500 text-white hover:bg-red-600">Delete</AlertDialogAction>
        </AlertDialogFooter>
      </AlertDialogContent>
    </AlertDialog>
  );
}

export default DeleteCollectionAlert

Dependencies

More by Edwin Vakayil

View all
  • Origin Button

    Origin Button

    869
  • Infinite Ribbon

    Infinite Ribbon

    586
  • Shimmer Text

    Shimmer Text

    443
  • Dia Text

    Dia Text

    373
  • Icon Bar

    Icon Bar

    263
  • FAQ Pro

    FAQ Pro

    246
  • Verified Badge

    Verified Badge

    233
  • New Card

    New Card

    199

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1