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

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/command.tsx lines 20–34

function Command({
  className,
  ...props
}: React.ComponentProps<typeof CommandPrimitive>) {
  return (
    <CommandPrimitive
      data-slot="command"
      className={cn(
        "cn-command flex size-full flex-col overflow-hidden",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does Command() do?
Command() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/command.tsx.
Where is Command() defined?
Command() is defined in apps/v4/registry/bases/radix/ui/command.tsx at line 20.

Analyze Your Own Codebase

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

Try Supermodel Free