@uifabric/experiments
Version:
Experimental React components for building experiences for Microsoft 365.
19 lines • 949 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Utilities_1 = require("../../Utilities");
var stylesImport = require("./StaticList.scss");
var StaticList = /** @class */ (function (_super) {
tslib_1.__extends(StaticList, _super);
function StaticList() {
return _super !== null && _super.apply(this, arguments) || this;
}
StaticList.prototype.render = function () {
var _a = this.props, className = _a.className, items = _a.items, onRenderItem = _a.onRenderItem, _b = _a.listTagName, ListTag = _b === void 0 ? 'ul' : _b;
return React.createElement(ListTag, { className: Utilities_1.css(stylesImport.root, className) }, items.map(function (item, index) { return onRenderItem(item, index); }));
};
return StaticList;
}(React.Component));
exports.StaticList = StaticList;
//# sourceMappingURL=StaticList.js.map