CommandDialog() — ui Function Reference
Architecture documentation for the CommandDialog() function in command.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 0a66311d_508d_7332_3af0_e7147abd348c["CommandDialog()"] 7a7173b4_d7f5_0575_733b_2098f08eb77d["command.tsx"] 0a66311d_508d_7332_3af0_e7147abd348c -->|defined in| 7a7173b4_d7f5_0575_733b_2098f08eb77d style 0a66311d_508d_7332_3af0_e7147abd348c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/command.tsx lines 32–61
function CommandDialog({
title = "Command Palette",
description = "Search for a command to run...",
children,
className,
showCloseButton = true,
...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("overflow-hidden p-0", className)}
showCloseButton={showCloseButton}
>
<Command className="[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
{children}
</Command>
</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/registry/new-york-v4/ui/command.tsx.
Where is CommandDialog() defined?
CommandDialog() is defined in apps/v4/registry/new-york-v4/ui/command.tsx at line 32.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free