UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

28 lines 1.51 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { Label } from 'office-ui-fabric-react/lib/Label'; import { Pivot, PivotItem } from 'office-ui-fabric-react/lib/Pivot'; import * as exampleStylesImport from '../../../common/_exampleStyles.scss'; var exampleStyles = exampleStylesImport; var PivotBasicExample = /** @class */ (function (_super) { tslib_1.__extends(PivotBasicExample, _super); function PivotBasicExample() { return _super !== null && _super.apply(this, arguments) || this; } PivotBasicExample.prototype.render = function () { return (React.createElement("div", null, React.createElement(Pivot, null, React.createElement(PivotItem, { headerText: "My Files", linkText: "I am deprecated. \"headerText\" overwrites me", headerButtonProps: { 'data-order': 1, 'data-title': 'My Files Title' } }, React.createElement(Label, { className: exampleStyles.exampleLabel }, "Pivot #1")), React.createElement(PivotItem, { linkText: "Recent" }, React.createElement(Label, null, "Pivot #2")), React.createElement(PivotItem, { linkText: "Shared with me" }, React.createElement(Label, null, "Pivot #3"))))); }; return PivotBasicExample; }(React.Component)); export { PivotBasicExample }; //# sourceMappingURL=Pivot.Basic.Example.js.map