lune-ui-lib
Version:
Lune UI Components Library
17 lines (16 loc) • 643 B
TypeScript
import type { SxProps } from '@mui/material';
import React from 'react';
export interface MultiSelectProps<T> {
options: T[];
getOptionLabel: (option: T) => string;
onChange: (value: readonly T[]) => void;
value?: T[];
sx?: SxProps;
disabled?: boolean;
label?: string;
error?: string | boolean;
showAllSelectedItems?: boolean;
loadingOptions?: boolean;
}
declare const AutocompleteMultiSelect: <T>({ options, getOptionLabel, onChange, value, sx, disabled, label, error, showAllSelectedItems, loadingOptions, ...rest }: MultiSelectProps<T>) => React.ReactElement;
export default AutocompleteMultiSelect;