@octopusdeploy/design-system-components
Version:
The design systems component library.
25 lines (24 loc) • 819 B
TypeScript
import { MultiSelectOption } from "./MultiSelectOption";
import type { SharedSelectProps } from "./SelectBase";
export interface MultiSelectProps<T> extends SharedSelectProps<T> {
/**
* The current values of the select
*/
value: string[];
/**
* The action to perform when the form control field is changed.
*/
onChange: (newValue: string[]) => void;
/**
* A function that returns a MultiSelectOption for an item
*/
getOption: (item: T) => MultiSelectOption;
}
/**
* MultiSelect component
*
* @remarks Rollout currently paused — do not use in new code until further notice.
* Use `<DeprecatedMultiSelect>` instead.
* @see <DeprecatedMultiSelect>
*/
export declare function MultiSelect<T>(props: MultiSelectProps<T>): import("react/jsx-runtime").JSX.Element;