UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

21 lines 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var Button_1 = require("office-ui-fabric-react/lib/Button"); var Label_1 = require("office-ui-fabric-react/lib/Label"); var ButtonCommandExample = (function (_super) { tslib_1.__extends(ButtonCommandExample, _super); function ButtonCommandExample() { return _super.call(this) || this; } ButtonCommandExample.prototype.render = function () { var _a = this.props, disabled = _a.disabled, checked = _a.checked; return (React.createElement("div", { className: 'ms-BasicButtonsExample' }, React.createElement(Label_1.Label, null, "Command button"), React.createElement(Button_1.CommandButton, { "data-automation-id": 'test', iconProps: { iconName: 'AddFriend' }, disabled: disabled, checked: checked }, "Create account"))); }; return ButtonCommandExample; }(React.Component)); exports.ButtonCommandExample = ButtonCommandExample; //# sourceMappingURL=../../../../src/components/Button/examples/Button.Command.Example.js.map