@uifabric/experiments
Version:
Experimental React components for building experiences for Microsoft 365.
17 lines • 842 B
JavaScript
import { __extends } from "tslib";
import * as React from 'react';
import { css } from '../../Utilities';
import * as stylesImport from './StaticList.scss';
var StaticList = /** @class */ (function (_super) {
__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: css(stylesImport.root, className) }, items.map(function (item, index) { return onRenderItem(item, index); }));
};
return StaticList;
}(React.Component));
export { StaticList };
//# sourceMappingURL=StaticList.js.map