Component evidence

ui/alert-dialog.tsx

lipi · components/ui/alert-dialog.tsx · typescript · MIT
uiUI / Frontend

Reusable alert dialog for critical user confirmations and destructive actions.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/rajput-hemant/lipi | License: MIT | Copyright 2023 Hemant Rajput
// Provided via justclaw.it.com; keep this notice with the code.
"use client";

import * as React from "react";
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";

import { buttonVariants } from "@/components/ui/button";
import { cn } from "@/lib/utils";

const AlertDialog = AlertDialogPrimitive.Root;

const AlertDialogTrigger = AlertDialogPrimitive.Trigger;

const AlertDialogPortal = AlertDialogPrimitive.Portal;

const AlertDialogOverlay = React.forwardRef<
  React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
  React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
>(({ className, ...props }, ref) => (
  <AlertDialogPrimitive.Overlay
    className={cn(
      "

... (truncated -- full source via MCP)