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

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/command.tsx lines 63–83

function CommandInput({
  className,
  ...props
}: React.ComponentProps<typeof CommandPrimitive.Input>) {
  return (
    <div
      data-slot="command-input-wrapper"
      className="flex h-9 items-center gap-2 border-b px-3"
    >
      <SearchIcon className="size-4 shrink-0 opacity-50" />
      <CommandPrimitive.Input
        data-slot="command-input"
        className={cn(
          "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden 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 apps/v4/registry/new-york-v4/ui/command.tsx.
Where is CommandInput() defined?
CommandInput() is defined in apps/v4/registry/new-york-v4/ui/command.tsx at line 63.

Analyze Your Own Codebase

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

Try Supermodel Free