UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

25 lines 1.31 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { Label } from 'office-ui-fabric-react/lib/Label'; import { Pivot, PivotItem, PivotLinkFormat } from 'office-ui-fabric-react/lib/Pivot'; var PivotTabsExample = /** @class */ (function (_super) { tslib_1.__extends(PivotTabsExample, _super); function PivotTabsExample() { return _super !== null && _super.apply(this, arguments) || this; } PivotTabsExample.prototype.render = function () { return (React.createElement("div", null, React.createElement(Pivot, { linkFormat: PivotLinkFormat.tabs }, React.createElement(PivotItem, { linkText: "Foo" }, React.createElement(Label, null, "Pivot #1")), React.createElement(PivotItem, { linkText: "Bar" }, React.createElement(Label, null, "Pivot #2")), React.createElement(PivotItem, { linkText: "Bas" }, React.createElement(Label, null, "Pivot #3")), React.createElement(PivotItem, { linkText: "Biz" }, React.createElement(Label, null, "Pivot #4"))))); }; return PivotTabsExample; }(React.Component)); export { PivotTabsExample }; //# sourceMappingURL=Pivot.Tabs.Example.js.map