UNPKG

@workday/canvas-kit-labs-react

Version:

Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API/functi

34 lines 1.34 kB
import React from 'react'; import { ComboBoxMenuItemGroup } from './Combobox'; interface AutocompleteListProps { /** * The autocomplete items of the Combobox. This array of menu items is shown under the text input. */ autocompleteItems: React.ReactElement<any>[] | ComboBoxMenuItemGroup[]; /** * Index of the active autocomplete item */ selectedIndex: number | null; /** * The function called when an autocomplete item is selected */ handleAutocompleteClick: (event: React.SyntheticEvent<Element, Event>, menuItemProps: any) => void; /** * The id of the form field. */ labelId: string; /** * The id of the combobox. */ comboboxId: string; /** * True when group changes via keyboard control */ showGroupText: boolean; } /** * @deprecated ⚠️ `AutocompleteList` in Labs has been deprecated and will be removed in a future major version. Please use [`Combobox` in Main](https://workday.github.io/canvas-kit/?path=/docs/features-combobox--docs) instead. */ export declare const AutocompleteList: ({ autocompleteItems, comboboxId, selectedIndex, handleAutocompleteClick, labelId, showGroupText, }: AutocompleteListProps) => import("react/jsx-runtime").JSX.Element | null; export {}; //# sourceMappingURL=AutocompleteList.d.ts.map