MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / AlertDialogContent

Function AlertDialogContent

src/components/ui/alert-dialog.tsx:47–64  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof AlertDialogPrimitive.Content>)

Source from the content-addressed store, hash-verified

45}
46
47function AlertDialogContent({
48 className,
49 ...props
50}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {
51 return (
52 <AlertDialogPortal>
53 <AlertDialogOverlay />
54 <AlertDialogPrimitive.Content
55 data-slot="alert-dialog-content"
56 className={cn(
57 "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
58 className
59 )}
60 {...props}
61 />
62 </AlertDialogPortal>
63 )
64}
65
66function AlertDialogHeader({
67 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected