office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
27 lines • 1.62 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { css, classNamesFunction } from 'office-ui-fabric-react/lib/Utilities';
import { getStyles } from './Button.Basic.Example.styles';
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;
var getClassNames = classNamesFunction();
var classNames = getClassNames(getStyles, {});
return (React.createElement("div", { className: css(classNames.example, classNames.twoup) },
React.createElement("div", null,
React.createElement(Label, null, "Standard"),
React.createElement(CompoundButton, { secondaryText: "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, secondaryText: "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