dialog.tsx — ui Source File
Architecture documentation for dialog.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d7454325_b46e_fdeb_ce12_716580da8f77["dialog.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] d7454325_b46e_fdeb_ce12_716580da8f77 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 3d9438e8_7604_787c_4898_907262aff28b["utils"] d7454325_b46e_fdeb_ce12_716580da8f77 --> 3d9438e8_7604_787c_4898_907262aff28b 43bb9fc1_6eab_13df_a99b_981eb13b9ec1["button"] d7454325_b46e_fdeb_ce12_716580da8f77 --> 43bb9fc1_6eab_13df_a99b_981eb13b9ec1 86c25b21_4f1d_ec20_df66_b57d63c10480["dialog"] d7454325_b46e_fdeb_ce12_716580da8f77 --> 86c25b21_4f1d_ec20_df66_b57d63c10480 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] d7454325_b46e_fdeb_ce12_716580da8f77 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style d7454325_b46e_fdeb_ce12_716580da8f77 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-rtl/button"
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog"
import { XIcon } from "lucide-react"
function Dialog({ ...props }: DialogPrimitive.Root.Props) {
return <DialogPrimitive.Root data-slot="dialog" {...props} />
}
function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {
return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />
}
function DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {
return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />
}
function DialogClose({ ...props }: DialogPrimitive.Close.Props) {
return <DialogPrimitive.Close data-slot="dialog-close" {...props} />
}
function DialogOverlay({
className,
...props
}: DialogPrimitive.Backdrop.Props) {
return (
<DialogPrimitive.Backdrop
data-slot="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 DialogContent({
className,
children,
showCloseButton = true,
...props
}: DialogPrimitive.Popup.Props & {
showCloseButton?: boolean
}) {
return (
<DialogPortal>
<DialogOverlay />
<DialogPrimitive.Popup
data-slot="dialog-content"
className={cn(
"bg-background 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 ring-foreground/10 fixed start-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 text-sm ring-1 duration-100 outline-none sm:max-w-sm rtl:translate-x-1/2",
className
)}
{...props}
>
{children}
// ... (96 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- dialog
- lucide-react
- react
- utils
Source
Frequently Asked Questions
What does dialog.tsx do?
dialog.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in dialog.tsx?
dialog.tsx defines 10 function(s): Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger.
What does dialog.tsx depend on?
dialog.tsx imports 5 module(s): button, dialog, lucide-react, react, utils.
Where is dialog.tsx in the architecture?
dialog.tsx is located at apps/v4/examples/base/ui-rtl/dialog.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base/ui-rtl).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free