import * as React from 'react'; import { Toggle } from '@fluentui/react/lib/Toggle'; import { Stack, IStackTokens } from '@fluentui/react/lib/Stack'; const stackTokens: IStackTokens = { childrenGap: 10 }; export const ToggleBasicExample: React.FunctionComponent = () => { return ( ); }; function _onChange(ev: React.MouseEvent, checked: boolean) { console.log('toggle is ' + (checked ? 'checked' : 'not checked')); }