import * as React from 'react';
import { ComboBox, SelectableOptionMenuItemType, PrimaryButton, } from '@fluentui/react';
var options = [
    { key: 'Header1', text: 'First heading', itemType: SelectableOptionMenuItemType.Header },
    { key: 'A', text: 'Option A' },
    { key: 'B', text: 'Option B' },
    { key: 'C', text: 'Option C' },
    { key: 'D', text: 'Option D' },
    { key: 'divider', text: '-', itemType: SelectableOptionMenuItemType.Divider },
    { key: 'Header2', text: 'Second heading', itemType: SelectableOptionMenuItemType.Header },
    { key: 'E', text: 'Option E' },
    { key: 'F', text: 'Option F', disabled: true },
    { key: 'G', text: 'Option G' },
    { key: 'H', text: 'Option H' },
    { key: 'I', text: 'Option I' },
    { key: 'J', text: 'Option J' },
];
// Optional styling to make the example look nicer
var comboBoxStyles = { root: { maxWidth: 300 } };
var buttonStyles = { root: { display: 'block', margin: '10px 0 20px' } };
export var ComboBoxBasicExample = function () {
    var comboBoxRef = React.useRef(null);
    var onOpenClick = React.useCallback(function () { var _a; return (_a = comboBoxRef.current) === null || _a === void 0 ? void 0 : _a.focus(true); }, []);
    return (React.createElement("div", null,
        React.createElement(ComboBox, { componentRef: comboBoxRef, defaultSelectedKey: "C", label: "Basic single-select ComboBox", options: options, styles: comboBoxStyles }),
        React.createElement(PrimaryButton, { text: "Open first ComboBox", onClick: onOpenClick, styles: buttonStyles }),
        React.createElement(ComboBox, { defaultSelectedKey: "C", label: "Basic multi-select ComboBox", multiSelect: true, options: options, styles: comboBoxStyles })));
};
//# sourceMappingURL=ComboBox.Basic.Example.js.map