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