office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
23 lines • 1.59 kB
JavaScript
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/Button", "office-ui-fabric-react/lib/Label"], function (require, exports, tslib_1, React, Button_1, Label_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ButtonCompoundExample = /** @class */ (function (_super) {
tslib_1.__extends(ButtonCompoundExample, _super);
function ButtonCompoundExample(props) {
return _super.call(this, props) || this;
}
ButtonCompoundExample.prototype.render = function () {
var _a = this.props, disabled = _a.disabled, checked = _a.checked;
return (React.createElement("div", { className: 'ms-BasicButtonsExample ms-BasicButtonsTwoUp' },
React.createElement("div", null,
React.createElement(Label_1.Label, null, "Standard"),
React.createElement(Button_1.CompoundButton, { description: 'You can create a new account here.', disabled: disabled, checked: checked }, "Create account")),
React.createElement("div", null,
React.createElement(Label_1.Label, null, "Primary"),
React.createElement(Button_1.CompoundButton, { primary: true, description: 'You can create a new account here.', disabled: disabled, checked: checked }, "Create account"))));
};
return ButtonCompoundExample;
}(React.Component));
exports.ButtonCompoundExample = ButtonCompoundExample;
});
//# sourceMappingURL=Button.Compound.Example.js.map