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

Function AutocompleteItem

packages/web/components/ui/autocomplete.tsx:111–128  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: AutocompletePrimitive.Item.Props)

Source from the content-addressed store, hash-verified

109}
110
111function AutocompleteItem({
112 className,
113 children,
114 ...props
115}: AutocompletePrimitive.Item.Props) {
116 return (
117 <AutocompletePrimitive.Item
118 className={cn(
119 "flex min-h-8 cursor-default select-none items-center rounded-sm px-2 py-1 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm",
120 className,
121 )}
122 data-slot="autocomplete-item"
123 {...props}
124 >
125 {children}
126 </AutocompletePrimitive.Item>
127 );
128}
129
130function AutocompleteSeparator({
131 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected