AlertDialogContent() — ui Function Reference
Architecture documentation for the AlertDialogContent() function in alert-dialog.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD f770485e_219b_e3b8_4db4_d3edf420a457["AlertDialogContent()"] 8a59d69c_497a_ace6_5c02_034d47d656c0["alert-dialog.tsx"] f770485e_219b_e3b8_4db4_d3edf420a457 -->|defined in| 8a59d69c_497a_ace6_5c02_034d47d656c0 style f770485e_219b_e3b8_4db4_d3edf420a457 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui-rtl/alert-dialog.tsx lines 46–67
function AlertDialogContent({
className,
size = "default",
...props
}: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
size?: "default" | "sm"
}) {
return (
<AlertDialogPortal>
<AlertDialogOverlay />
<AlertDialogPrimitive.Content
data-slot="alert-dialog-content"
data-size={size}
className={cn(
"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 group/alert-dialog-content fixed start-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm rtl:translate-x-1/2",
className
)}
{...props}
/>
</AlertDialogPortal>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does AlertDialogContent() do?
AlertDialogContent() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/alert-dialog.tsx.
Where is AlertDialogContent() defined?
AlertDialogContent() is defined in apps/v4/examples/radix/ui-rtl/alert-dialog.tsx at line 46.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free