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 1f1fb707_fd40_064f_629b_90fb57bde5be["dialog.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 1f1fb707_fd40_064f_629b_90fb57bde5be --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"] 1f1fb707_fd40_064f_629b_90fb57bde5be --> 9c463da6_747b_38dc_586b_cbb4873070b1 ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"] 1f1fb707_fd40_064f_629b_90fb57bde5be --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6 381135fe_5f7a_910a_b8a2_691e9756a016["button"] 1f1fb707_fd40_064f_629b_90fb57bde5be --> 381135fe_5f7a_910a_b8a2_691e9756a016 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] 1f1fb707_fd40_064f_629b_90fb57bde5be --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style 1f1fb707_fd40_064f_629b_90fb57bde5be fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Dialog as DialogPrimitive } from "radix-ui"
import { cn } from "@/registry/bases/radix/lib/utils"
import { Button } from "@/registry/bases/radix/ui/button"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
function Dialog({
...props
}: React.ComponentProps<typeof DialogPrimitive.Root>) {
return <DialogPrimitive.Root data-slot="dialog" {...props} />
}
function DialogTrigger({
...props
}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {
return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />
}
function DialogPortal({
...props
}: React.ComponentProps<typeof DialogPrimitive.Portal>) {
return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />
}
function DialogClose({
...props
}: React.ComponentProps<typeof DialogPrimitive.Close>) {
return <DialogPrimitive.Close data-slot="dialog-close" {...props} />
}
function DialogOverlay({
className,
...props
}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {
return (
<DialogPrimitive.Overlay
data-slot="dialog-overlay"
className={cn("cn-dialog-overlay fixed inset-0 isolate z-50", className)}
{...props}
/>
)
}
function DialogContent({
className,
children,
showCloseButton = true,
...props
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
showCloseButton?: boolean
}) {
return (
<DialogPortal>
<DialogOverlay />
<DialogPrimitive.Content
data-slot="dialog-content"
className={cn(
// ... (101 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- icon-placeholder
- radix-ui
- 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 ComponentRegistry domain, ChartRegistry 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, icon-placeholder, radix-ui, react, utils.
Where is dialog.tsx in the architecture?
dialog.tsx is located at apps/v4/registry/bases/radix/ui/dialog.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free