CommandDialog() — ui Function Reference
Architecture documentation for the CommandDialog() function in command.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 33ce51d0_7c86_d60b_4a36_ae8185e2bec0["CommandDialog()"] 3bbe14d1_264d_de37_24d9_abecee38854b["command.tsx"] 33ce51d0_7c86_d60b_4a36_ae8185e2bec0 -->|defined in| 3bbe14d1_264d_de37_24d9_abecee38854b style 33ce51d0_7c86_d60b_4a36_ae8185e2bec0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui-rtl/command.tsx lines 35–65
function CommandDialog({
title = "Command Palette",
description = "Search for a command to run...",
children,
className,
showCloseButton = false,
...props
}: React.ComponentProps<typeof Dialog> & {
title?: string
description?: string
className?: string
showCloseButton?: boolean
}) {
return (
<Dialog {...props}>
<DialogHeader className="sr-only">
<DialogTitle>{title}</DialogTitle>
<DialogDescription>{description}</DialogDescription>
</DialogHeader>
<DialogContent
className={cn(
"top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0",
className
)}
showCloseButton={showCloseButton}
>
{children}
</DialogContent>
</Dialog>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does CommandDialog() do?
CommandDialog() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/command.tsx.
Where is CommandDialog() defined?
CommandDialog() is defined in apps/v4/examples/radix/ui-rtl/command.tsx at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free