UNPKG

@gpa-gemstone/react-forms

Version:
39 lines (38 loc) 1.03 kB
interface IOption { Value: number | string; Label: string | JSX.Element; Selected: boolean; } interface IProps { /** * Label to display for the form, defaults to the Field prop * @type {string} * @optional */ Label?: string; /** * Array of options for the multi-select checkboxe * @type {{ Value: number | string; Text: string; Selected: boolean }[]} */ Options: IOption[]; /** * Function to handle changes in the selection * @param evt - The change event * @param Options - The updated options array * @returns {void} */ OnChange: (evt: any, Options: IOption[]) => void; /** * Help message or element to display * @type {string | JSX.Element} * @optional */ Help?: string | JSX.Element; /** * Flag to show or hide the selected options tooltip * @optional */ ShowToolTip?: boolean; } declare const MultiSelect: (props: IProps) => JSX.Element; export default MultiSelect;