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

Relationship Graph

Source Code

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