UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

1 lines 783 B
module.exports = "import * as React from 'react';\nimport {\n Button,\n ButtonType,\n Label\n} from '../../../../index';\nimport { IButtonProps } from './IButtonProps';\n\nexport class ButtonCommandExample extends React.Component<IButtonProps, any> {\n public constructor() {\n super();\n }\n\n public render() {\n let { isDisabled } = this.props;\n\n return (\n <div className='ms-BasicButtonsExample'>\n <Label>Command button</Label>\n <Button\n data-automation-id='test'\n buttonType={ ButtonType.command }\n icon='AddFriend'\n description='Description of the action this button takes'\n disabled={ isDisabled }\n >\n Create account\n </Button>\n </div>\n );\n }\n}\n";