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

Relationship Graph

Source Code

apps/v4/examples/radix/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 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/command.tsx.
Where is Command() defined?
Command() is defined in apps/v4/examples/radix/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