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

Relationship Graph

Source Code

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