MCPcopy Create free account
hub / github.com/arctic-cli/interface / CommandInput

Function CommandInput

packages/web/components/ui/command.tsx:116–138  ·  view source on GitHub ↗
({
  className,
  placeholder = undefined,
  ...props
}: React.ComponentProps<typeof AutocompleteInput>)

Source from the content-addressed store, hash-verified

114}
115
116function CommandInput({
117 className,
118 placeholder = undefined,
119 ...props
120}: React.ComponentProps<typeof AutocompleteInput>) {
121 const { inputRef } = React.useContext(CommandInputContext);
122
123 return (
124 <div className="px-2.5 py-1.5">
125 <AutocompleteInput
126 className={cn(
127 "border-transparent! bg-transparent! shadow-none before:hidden has-focus-visible:ring-0",
128 className,
129 )}
130 placeholder={placeholder}
131 ref={inputRef}
132 size="lg"
133 startAddon={<HugeiconsIcon icon={Search01Icon} />}
134 {...props}
135 />
136 </div>
137 );
138}
139
140function CommandList({
141 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected