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

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/command.tsx lines 65–86

function CommandInput({
  className,
  ...props
}: React.ComponentProps<typeof CommandPrimitive.Input>) {
  return (
    <div data-slot="command-input-wrapper" className="p-1 pb-0">
      <InputGroup className="bg-input/30 border-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:ps-2!">
        <CommandPrimitive.Input
          data-slot="command-input"
          className={cn(
            "w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
            className
          )}
          {...props}
        />
        <InputGroupAddon>
          <SearchIcon className="size-4 shrink-0 opacity-50" />
        </InputGroupAddon>
      </InputGroup>
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does CommandInput() do?
CommandInput() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/command.tsx.
Where is CommandInput() defined?
CommandInput() is defined in apps/v4/examples/base/ui-rtl/command.tsx at line 65.

Analyze Your Own Codebase

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

Try Supermodel Free