Home / Function/ CommandDialog() — ui Function Reference

CommandDialog() — ui Function Reference

Architecture documentation for the CommandDialog() function in command.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  7d22f48e_6829_7855_5a41_c355618d0924["CommandDialog()"]
  a88c7611_bf85_ef88_f0a5_89d7ec1501ca["command.tsx"]
  7d22f48e_6829_7855_5a41_c355618d0924 -->|defined in| a88c7611_bf85_ef88_f0a5_89d7ec1501ca
  style 7d22f48e_6829_7855_5a41_c355618d0924 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui/command.tsx lines 32–62

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>
  )
}

Subdomains

Frequently Asked Questions

What does CommandDialog() do?
CommandDialog() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/command.tsx.
Where is CommandDialog() defined?
CommandDialog() is defined in apps/v4/examples/radix/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