MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / AlertDialogContent

Function AlertDialogContent

components/ui/alert-dialog.tsx:41–62  ·  view source on GitHub ↗
({
  className,
  size = "default",
  ...props
}: AlertDialogPrimitive.Popup.Props & {
  size?: "default" | "sm";
})

Source from the content-addressed store, hash-verified

39}
40
41function AlertDialogContent({
42 className,
43 size = "default",
44 ...props
45}: AlertDialogPrimitive.Popup.Props & {
46 size?: "default" | "sm";
47}) {
48 return (
49 <AlertDialogPortal>
50 <AlertDialogOverlay />
51 <AlertDialogPrimitive.Popup
52 data-slot="alert-dialog-content"
53 data-size={size}
54 className={cn(
55 "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 gap-4 rounded-none p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none",
56 className
57 )}
58 {...props}
59 />
60 </AlertDialogPortal>
61 );
62}
63
64function AlertDialogHeader({
65 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected