UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

23 lines 1.38 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { CompoundButton } from 'office-ui-fabric-react/lib/Button'; import { Label } from 'office-ui-fabric-react/lib/Label'; 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, null, "Standard"), React.createElement(CompoundButton, { description: 'You can create a new account here.', disabled: disabled, checked: checked }, "Create account")), React.createElement("div", null, React.createElement(Label, null, "Primary"), React.createElement(CompoundButton, { primary: true, description: 'You can create a new account here.', disabled: disabled, checked: checked }, "Create account")))); }; return ButtonCompoundExample; }(React.Component)); export { ButtonCompoundExample }; //# sourceMappingURL=Button.Compound.Example.js.map