AlertDialog (ui/alert-dialog.jsx)

casos · web/src/components/ui/alert-dialog.jsx · javascript · Apache-2.0
ui

Module exposing: AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle

// Source: https://github.com/casosorg/casos | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import * as React from "react";
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
import {cn} from "@/lib/utils";
import {buttonVariants} from "@/components/ui/button";

function AlertDialog({...props}) {
  return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
}

function AlertDialogTrigger({...props}) {
  return <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />;
}

function AlertDialogPortal({...props}) {
  return <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />;
}

function AlertDialogOverlay({cl

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

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key