UNPKG

multiselect-react-dropdown2

Version:

React multiselect dropdown component with search and various features

30 lines (29 loc) 934 B
import React from "react"; export interface IMultiselectProps { options: any; disablePreSelectedValues?: boolean; selectedValues?: any; isObject?: boolean; displayValue?: string; showCheckbox?: boolean; selectionLimit?: any; placeholder?: string; groupBy?: string; loading?: boolean; style?: object; emptyRecordMsg?: string; onSelect?: (selectedList: any, selectedItem: any) => void; onRemove?: (selectedList: any, selectedItem: any) => void; onSearch?: (value: string) => void; onKeyPressFn?: (event: any, value: string) => void; closeIcon?: string; singleSelect?: boolean; caseSensitiveSearch?: boolean; id?: string; closeOnSelect?: boolean; avoidHighlightFirstOption?: boolean; hidePlaceholder?: boolean; showArrow?: boolean; keepSearchTerm?: boolean; customCloseIcon?: React.ReactNode | string; }