import * as React from 'react'; import { Dropdown, IDropdownStyles } from '@fluentui/react/lib/Dropdown'; import { IStackTokens, Stack } from '@fluentui/react/lib/Stack'; import { Toggle } from '@fluentui/react/lib/Toggle'; import { useBoolean } from '@fluentui/react-hooks'; const dropdownStyles: Partial = { dropdown: { width: 300 }, root: { height: 100 } }; const stackTokens: IStackTokens = { childrenGap: 30 }; const DropdownErrorExampleOptions = [ { key: 'A', text: 'Option a' }, { key: 'B', text: 'Option b' }, { key: 'C', text: 'Option c' }, { key: 'D', text: 'Option d' }, { key: 'E', text: 'Option e' }, ]; export const DropdownErrorExample: React.FunctionComponent = () => { const [showError, { toggle: toggleShowError }] = useBoolean(false); return ( ); };