@blueprintjs/core
Version:
Core styles & components
31 lines (29 loc) • 1.18 kB
JavaScript
/*
* Copyright 2015 Palantir Technologies, Inc. All rights reserved.
* Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy
* of the license at https://github.com/palantir/blueprint/blob/master/LICENSE
* and https://github.com/palantir/blueprint/blob/master/PATENTS
*/
;
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var classNames = require("classnames");
var React = require("react");
var Classes = require("../../common/classes");
var Menu = (function (_super) {
__extends(Menu, _super);
function Menu() {
_super.apply(this, arguments);
}
Menu.prototype.render = function () {
return React.createElement("ul", {className: classNames(Classes.MENU, this.props.className)}, this.props.children);
};
Menu.displayName = "Blueprint.Menu";
return Menu;
}(React.Component));
exports.Menu = Menu;
exports.MenuFactory = React.createFactory(Menu);
//# sourceMappingURL=menu.js.map