Home / Function/ CommandInput() — ui Function Reference

CommandInput() — ui Function Reference

Architecture documentation for the CommandInput() function in command.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  31d06765_1aea_0400_4e83_7431e816f0d4["CommandInput()"]
  ba6c0424_1e33_efc2_5b1d_83fec08894aa["command.tsx"]
  31d06765_1aea_0400_4e83_7431e816f0d4 -->|defined in| ba6c0424_1e33_efc2_5b1d_83fec08894aa
  style 31d06765_1aea_0400_4e83_7431e816f0d4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/ui/command.tsx lines 41–53

>(({ className, ...props }, ref) => (
  <div className="flex items-center border-b px-3" cmdk-input-wrapper="">
    <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
    <CommandPrimitive.Input
      ref={ref}
      className={cn(
        "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
        className
      )}
      {...props}
    />
  </div>
))

Subdomains

Frequently Asked Questions

What does CommandInput() do?
CommandInput() is a function in the ui codebase, defined in deprecated/www/registry/default/ui/command.tsx.
Where is CommandInput() defined?
CommandInput() is defined in deprecated/www/registry/default/ui/command.tsx at line 41.

Analyze Your Own Codebase

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

Try Supermodel Free