UNPKG

@octopusdeploy/design-system-components

Version:
24 lines (23 loc) 842 B
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. * Return a `color` on the option to render selections as coloured `CategoryTag`s. */ getOption: (item: T) => MultiSelectOption; } /** * MultiSelect component * * @remarks Only use in pre-approved areas, as in #project-form-uplift if unsure before using. */ export declare function MultiSelect<T>(props: MultiSelectProps<T>): import("react/jsx-runtime").JSX.Element;