import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { Fabric, Checkbox, ChoiceGroup, Dropdown, DropdownMenuItemType, Slider, Stack, TextField, Toggle, } from '@fluentui/react'; let _rootDiv: HTMLElement; const choicegroupOptions = [ { key: 'A', text: 'Option A' }, { key: 'B', text: 'Option B' }, { key: 'C', text: 'Option C', disabled: true }, { key: 'D', text: 'Option D' }, ]; const dropdownOptions = [ { key: 'fruitsHeader', text: 'Fruits', itemType: DropdownMenuItemType.Header }, { key: 'apple', text: 'Apple' }, { key: 'banana', text: 'Banana' }, { key: 'orange', text: 'Orange', disabled: true }, { key: 'grape', text: 'Grape' }, { key: 'divider_1', text: '-', itemType: DropdownMenuItemType.Divider }, { key: 'vegetablesHeader', text: 'Vegetables', itemType: DropdownMenuItemType.Header }, { key: 'broccoli', text: 'Broccoli' }, { key: 'carrot', text: 'Carrot' }, { key: 'lettuce', text: 'Lettuce' }, ]; const dropdownStyles = { dropdown: { width: 300 }, }; function start(): void { if (!_rootDiv) { _rootDiv = document.createElement('div'); document.body.appendChild(_rootDiv); } ReactDOM.render( , _rootDiv, ); } // Start the application. start();