UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

19 lines 1.02 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { PrimaryButton } from 'office-ui-fabric-react/lib/Button'; var ButtonPrimaryExample = /** @class */ (function (_super) { tslib_1.__extends(ButtonPrimaryExample, _super); function ButtonPrimaryExample() { return _super !== null && _super.apply(this, arguments) || this; } ButtonPrimaryExample.prototype.render = function () { var _a = this.props, disabled = _a.disabled, checked = _a.checked; return (React.createElement("div", { className: 'ms-BasicButtonsExample' }, React.createElement(PrimaryButton, { "data-automation-id": 'test', disabled: disabled, checked: checked, text: 'Create account', // tslint:disable-next-line:jsx-no-lambda onClick: function () { return alert('Clicked'); } }))); }; return ButtonPrimaryExample; }(React.Component)); export { ButtonPrimaryExample }; //# sourceMappingURL=Button.Primary.Example.js.map