UNPKG

geoiq-frontend-ui-kit

Version:

This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.

26 lines (25 loc) 915 B
import { PopoverContent } from '../../unstyled/popover/popover-components'; export interface MultiSelectProps { options: OptionType[]; selected: string[]; onChange: React.Dispatch<React.SetStateAction<string[]>>; className?: string; popoverContentProps?: PopoverContentProps; listEmptyComponent?: React.ReactNode; placeholder?: string; onSearchChange?: (value: string) => void; onChangePopoverOpen?: (open: boolean) => void; searchPlaceholder?: string; /** * The container element for the multi-select component. * The popover will be appended to this element. */ container?: Element | null | undefined; } export type PopoverContentProps = React.ComponentPropsWithoutRef<typeof PopoverContent>; export type OptionType = { label: string; value: string; icon?: React.ReactElement; }; //# sourceMappingURL=multi-select-combobox.types.d.ts.map