alert-dialog.tsx — ui Source File
Architecture documentation for alert-dialog.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 12f0e601_5907_1bd2_7826_2e47d8751667["alert-dialog.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 12f0e601_5907_1bd2_7826_2e47d8751667 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 3d9438e8_7604_787c_4898_907262aff28b["utils"] 12f0e601_5907_1bd2_7826_2e47d8751667 --> 3d9438e8_7604_787c_4898_907262aff28b 4544fa74_9b37_0912_c55e_f4ff161b8e83["button"] 12f0e601_5907_1bd2_7826_2e47d8751667 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83 4a310ddc_06ca_398c_dc2a_43bf245f4325["alert-dialog"] 12f0e601_5907_1bd2_7826_2e47d8751667 --> 4a310ddc_06ca_398c_dc2a_43bf245f4325 style 12f0e601_5907_1bd2_7826_2e47d8751667 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { cn } from "@/examples/base/lib/utils"
import { Button } from "@/examples/base/ui/button"
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog"
function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props) {
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
}
function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props) {
return (
<AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
)
}
function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props) {
return (
<AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
)
}
function AlertDialogOverlay({
className,
...props
}: AlertDialogPrimitive.Backdrop.Props) {
return (
<AlertDialogPrimitive.Backdrop
data-slot="alert-dialog-overlay"
className={cn(
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs",
className
)}
{...props}
/>
)
}
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 top-1/2 left-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",
className
)}
{...props}
/>
</AlertDialogPortal>
)
// ... (127 more lines)
Domain
Subdomains
Functions
Dependencies
- alert-dialog
- button
- react
- utils
Source
Frequently Asked Questions
What does alert-dialog.tsx do?
alert-dialog.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in alert-dialog.tsx?
alert-dialog.tsx defines 12 function(s): AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, and 2 more.
What does alert-dialog.tsx depend on?
alert-dialog.tsx imports 4 module(s): alert-dialog, button, react, utils.
Where is alert-dialog.tsx in the architecture?
alert-dialog.tsx is located at apps/v4/examples/base/ui/alert-dialog.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free