Home / Function/ Command() — ui Function Reference

Command() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/command.tsx lines 16–30

function Command({
  className,
  ...props
}: React.ComponentProps<typeof CommandPrimitive>) {
  return (
    <CommandPrimitive
      data-slot="command"
      className={cn(
        "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does Command() do?
Command() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/command.tsx.
Where is Command() defined?
Command() is defined in apps/v4/registry/new-york-v4/ui/command.tsx at line 16.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free