UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

22 lines 1.06 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { CommandBar } from '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, { items: items, overflowItems: overflowItems, farItems: farItems, ariaLabel: 'Use left and right arrow keys to navigate between commands' }))); }; return CommandBarBasicExample; }(React.Component)); export { CommandBarBasicExample }; //# sourceMappingURL=CommandBar.Basic.Example.js.map