@grafana/ui
Version:
Grafana Components Library
17 lines (16 loc) • 967 B
TypeScript
import { type ComboboxBaseProps, type AutoSizeConditionals } from './Combobox';
import { type ComboboxOption } from './types';
interface MultiComboboxBaseProps<T extends string | number> extends Omit<ComboboxBaseProps<T>, 'value' | 'onChange' | 'isClearable'> {
value?: T[] | Array<ComboboxOption<T>>;
onChange: (option: Array<ComboboxOption<T>>) => void;
isClearable?: boolean;
enableAllOption?: boolean;
}
export type MultiComboboxProps<T extends string | number> = MultiComboboxBaseProps<T> & AutoSizeConditionals;
/**
* The behavior of the MultiCombobox is similar to that of the Combobox, but it allows you to select multiple options. For all non-multi behaviors, see the Combobox documentation.
*
* https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-multicombobox--docs
*/
export declare const MultiCombobox: <T extends string | number>(props: MultiComboboxProps<T>) => import("react/jsx-runtime").JSX.Element;
export {};