UNPKG

@vectara/vectara-ui

Version:

Vectara's design system, codified as a React and Sass component library

20 lines (19 loc) 942 B
import { Props as OptionsListProps } from "../optionsList/OptionsList"; import { Props as PopoverProps } from "../popover/Popover"; type Props<T> = Pick<PopoverProps, "isOpen" | "setIsOpen" | "anchorSide"> & Pick<OptionsListProps<T>, "options"> & { children: PopoverProps["button"]; title?: string; searchValue: string; setSearchValue: (searchValue: string) => void; asyncSearch?: { isSearching?: boolean; onSearchChange?: (searchValue: string) => void; onLazyLoad?: () => void; }; selectedOptions: T[]; onSelect: (selected: T[]) => void; isMultiSelect?: boolean; "data-testid"?: string; }; export declare const VuiSearchSelect: <T extends unknown = unknown>({ isOpen, setIsOpen, anchorSide, options, children, title, searchValue, setSearchValue, asyncSearch, selectedOptions, onSelect, isMultiSelect, ...rest }: Props<T>) => import("react/jsx-runtime").JSX.Element; export {};