Home / Function/ AlertDialogContent() — ui Function Reference

AlertDialogContent() — ui Function Reference

Architecture documentation for the AlertDialogContent() function in alert-dialog.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  4a9d9e2c_6273_a9c6_72ab_8fdaf8f6381d["AlertDialogContent()"]
  0eba9e96_12af_18e5_d900_ba808367f7a3["alert-dialog.tsx"]
  4a9d9e2c_6273_a9c6_72ab_8fdaf8f6381d -->|defined in| 0eba9e96_12af_18e5_d900_ba808367f7a3
  style 4a9d9e2c_6273_a9c6_72ab_8fdaf8f6381d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/alert-dialog.tsx lines 40–61

function AlertDialogContent({
  className,
  size = "default",
  ...props
}: AlertDialogPrimitive.Popup.Props & {
  size?: "default" | "sm"
}) {
  return (
    <AlertDialogPortal>
      <AlertDialogOverlay />
      <AlertDialogPrimitive.Popup
        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>
  )
}

Subdomains

Frequently Asked Questions

What does AlertDialogContent() do?
AlertDialogContent() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/alert-dialog.tsx.
Where is AlertDialogContent() defined?
AlertDialogContent() is defined in apps/v4/examples/base/ui-rtl/alert-dialog.tsx at line 40.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free