CommandInput() — ui Function Reference
Architecture documentation for the CommandInput() function in command.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 7a3843d9_fda3_a042_fb07_53c41dde569c["CommandInput()"] 191b7c88_cdb7_116e_59cb_2e77505bc304["command.tsx"] 7a3843d9_fda3_a042_fb07_53c41dde569c -->|defined in| 191b7c88_cdb7_116e_59cb_2e77505bc304 style 7a3843d9_fda3_a042_fb07_53c41dde569c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui/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]:pl-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>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does CommandInput() do?
CommandInput() is a function in the ui codebase, defined in apps/v4/examples/base/ui/command.tsx.
Where is CommandInput() defined?
CommandInput() is defined in apps/v4/examples/base/ui/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