@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
20 lines • 1.14 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { Button } from '@uifabric/experiments';
import { Stack } from 'office-ui-fabric-react';
import { stackProps } from './SlotExampleUtils';
// tslint:disable:jsx-no-lambda
var SlotsRootExample = /** @class */ (function (_super) {
tslib_1.__extends(SlotsRootExample, _super);
function SlotsRootExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
SlotsRootExample.prototype.render = function () {
return (React.createElement(Stack, tslib_1.__assign({}, stackProps),
React.createElement(Button, { icon: "share", href: "https://developer.microsoft.com/en-us/fabric", content: "Root: Implicit 'a' via href prop" }),
React.createElement(Button, { icon: "share", root: function (render) { return render(function (RootType, rootProps) { return React.createElement(RootType, tslib_1.__assign({}, rootProps)); }); }, content: "Root: Function" })));
};
return SlotsRootExample;
}(React.Component));
export { SlotsRootExample };
//# sourceMappingURL=Slots.Root.Example.js.map