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

Function AutocompleteClear

packages/web/components/ui/autocomplete.tsx:225–241  ·  view source on GitHub ↗
({
  className,
  ...props
}: AutocompletePrimitive.Clear.Props)

Source from the content-addressed store, hash-verified

223}
224
225function AutocompleteClear({
226 className,
227 ...props
228}: AutocompletePrimitive.Clear.Props) {
229 return (
230 <AutocompletePrimitive.Clear
231 className={cn(
232 "-translate-y-1/2 absolute end-0.5 top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-[color,background-color,box-shadow,opacity] pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
233 className,
234 )}
235 data-slot="autocomplete-clear"
236 {...props}
237 >
238 <HugeiconsIcon icon={Cancel01Icon} />
239 </AutocompletePrimitive.Clear>
240 );
241}
242
243function AutocompleteStatus({
244 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected