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
  83af1184_97cd_4d7f_759e_8c45861a7fbd["Command()"]
  3bbe14d1_264d_de37_24d9_abecee38854b["command.tsx"]
  83af1184_97cd_4d7f_759e_8c45861a7fbd -->|defined in| 3bbe14d1_264d_de37_24d9_abecee38854b
  style 83af1184_97cd_4d7f_759e_8c45861a7fbd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/command.tsx lines 19–33

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

Subdomains

Frequently Asked Questions

What does Command() do?
Command() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/command.tsx.
Where is Command() defined?
Command() is defined in apps/v4/examples/radix/ui-rtl/command.tsx at line 19.

Analyze Your Own Codebase

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

Try Supermodel Free