UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

24 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var CommandBar_1 = require("office-ui-fabric-react/lib/CommandBar"); var CommandBarBasicExample = /** @class */ (function (_super) { tslib_1.__extends(CommandBarBasicExample, _super); function CommandBarBasicExample(props) { var _this = _super.call(this, props) || this; _this.state = { areNamesVisible: true, areIconsVisible: true }; return _this; } CommandBarBasicExample.prototype.render = function () { var _a = this.props, items = _a.items, overflowItems = _a.overflowItems, farItems = _a.farItems; return (React.createElement("div", null, React.createElement(CommandBar_1.CommandBar, { items: items, overflowItems: overflowItems, farItems: farItems, ariaLabel: 'Use left and right arrow keys to navigate between commands' }))); }; return CommandBarBasicExample; }(React.Component)); exports.CommandBarBasicExample = CommandBarBasicExample; //# sourceMappingURL=CommandBar.Basic.Example.js.map