This component no longer exists. It was in Wednesday UI’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-13 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
Autocomplete
wednesday-ui/autocompleteRemovedComponent
A autocomplete component
Install it
npx shadcn@latest add https://ui.ednesdayw.com/r/autocomplete.jsonSource
1// This code is based on downshift-shadcn-combobox by OmerMakesStuff2// Source: https://github.com/OmerMakesStuff/downshift-shadcn-combobox3// Licensed under the MIT License45import {6 Popover,7 PopoverContent,8 PopoverTrigger,9} from "@/components/ui/popover";10import { cn } from "@/lib/utils";11import { Input, type InputProps } from "@/components/ui/input";12import { cva } from "class-variance-authority";13import {14 type UseComboboxGetInputPropsReturnValue,15 type UseComboboxProps,16 type UseComboboxReturnValue,17 useCombobox,18} from "downshift";19import { CheckIcon, ChevronDownIcon } from "lucide-react";20import {21 Children,22 type ComponentPropsWithoutRef,23 type PropsWithChildren,24 type ReactElement,25 createContext,26 isValidElement,27 useCallback,28 useContext,29 useEffect,30 useMemo,31 useState,32} from "react";3334type AutocompleteItemType = {35 label: string;36 value: string;37 disabled?: boolean;38};3940type AutocompleteContextValue = Partial<41 Pick<42 UseComboboxReturnValue<AutocompleteItemType>,43 | "getInputProps"44 | "getToggleButtonProps"45 | "getItemProps"46 | "getMenuProps"47 | "highlightedIndex"48 | "inputValue"49 | "isOpen"50 | "selectedItem"51 | "selectItem"52 | "setInputValue"53 > & {54 size: InputProps["size"];55 variant: InputProps["variant"];56 filteredItems: AutocompleteItemType[];57 items: AutocompleteItemType[];58 onItemsChange: (items: AutocompleteItemType[]) => void;59 onChange: (value: string) => void;60 openedOnce: boolean;61 }62>;6364const AutocompleteContext = createContext<AutocompleteContextValue>(65 {} as AutocompleteContextValue,66);6768const useAutocompleteContext = () => useContext(AutocompleteContext);6970type AutocompleteProps = PropsWithChildren<{71 value?: string;72 onChange?: (value: string) => void;73 size?: InputProps["size"];74 variant?: InputProps["variant"];75 filterItems?: (76 search: string,77 items: AutocompleteItemType[],78 ) => AutocompleteItemType[];79}>;8081const { stateChangeTypes } = useCombobox;8283const defaultFilter = (inputValue: string, items: AutocompleteItemType[]) => {84 return items.filter(85 (item) =>86 !inputValue ||87 item.label.toLowerCase().includes(inputValue.toLowerCase()),88 );89};9091const Autocomplete = ({92 size,93 variant,94 value,95 onChange,96 filterItems = defaultFilter,97 children,98}: AutocompleteProps) => {99 const [items, setItems] = useState<AutocompleteItemType[]>([]);100// … truncated
What it pulls in
npm packages
Other registry items
