import * as React from 'react'; import { Button, MenuButton, IMenuButtonProps } from '@uifabric/experiments'; import { createTheme, mergeStyles, Stack } from 'office-ui-fabric-react'; const testTheme = createTheme({ semanticColors: { buttonText: '#E20000', }, fonts: { medium: { color: 'purple', }, }, }); const tokens = { sectionStack: { childrenGap: 32, }, headingStack: { childrenGap: 16, padding: 8, }, buttonStack: { childrenGap: 12, }, }; const menuProps: IMenuButtonProps['menu'] = { items: [ { key: 'a', name: 'Item a', }, { key: 'b', name: 'Item b', }, ], }; const ButtonStack = (props: { children: JSX.Element[] | JSX.Element }) => ( {props.children} ); /* eslint-disable react/jsx-no-bind */ export class ButtonStylesExample extends React.Component<{}, {}> { public render(): JSX.Element { const testClassName = mergeStyles({ color: 'blue' }); return ( ({ content: { color: '#8F6800' } })} /> ({ icon: { color: theme.fonts.medium.color } })} theme={testTheme} /> ({ root: { color: '#8F6800' } }), }} /> ({ root: { color: theme.semanticColors.buttonText } }), theme: testTheme, }} /> ); } }