import * as React from 'react'; import { IContextualMenuProps, Stack } from '@fluentui/react'; // IStackTokens import { DefaultButton } from '@fluentui/react/lib/Button'; export interface IButtonExampleProps { // These are set based on the toggles shown above the examples (not needed in real code) disabled?: boolean; checked?: boolean; } const menuProps: IContextualMenuProps = { items: [ { key: 'emailMessage', text: 'Email message', iconProps: { iconName: 'Mail' }, }, { key: 'calendarEvent', text: 'Calendar event', iconProps: { iconName: 'Calendar' }, }, ], }; // Example formatting // const stackTokens: IStackTokens = { childrenGap: 40 }; export const ButtonSplitExample: React.FunctionComponent = props => { const { disabled, checked } = props; return ( ); }; function _alertClicked() { alert('Clicked'); }