DialogContent() — ui Function Reference
Architecture documentation for the DialogContent() function in command-menu.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 8d77f885_1762_d43d_181d_96351df818da["DialogContent()"] f230e63c_c621_4fb0_5506_e74b21915cf5["command-menu.tsx"] 8d77f885_1762_d43d_181d_96351df818da -->|defined in| f230e63c_c621_4fb0_5506_e74b21915cf5 style 8d77f885_1762_d43d_181d_96351df818da fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/components/command-menu.tsx lines 582–604
function DialogContent({
className,
children,
...props
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
showCloseButton?: boolean
}) {
return (
<DialogPortal data-slot="dialog-portal">
{/* <DialogOverlay /> */}
<DialogPrimitive.Content
data-slot="dialog-content"
className={cn(
"bg-background fixed top-[15%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",
className
)}
{...props}
>
{children}
</DialogPrimitive.Content>
</DialogPortal>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does DialogContent() do?
DialogContent() is a function in the ui codebase, defined in apps/v4/components/command-menu.tsx.
Where is DialogContent() defined?
DialogContent() is defined in apps/v4/components/command-menu.tsx at line 582.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free