UNPKG

@blueprintjs/core

Version:
31 lines 1.4 kB
/* * Copyright 2017 Palantir Technologies, Inc. All rights reserved. * * Licensed under the terms of the LICENSE file distributed with this project. */ import * as tslib_1 from "tslib"; import classNames from "classnames"; import * as React from "react"; import { Alignment } from "../../common/alignment"; import * as Classes from "../../common/classes"; import { DISPLAYNAME_PREFIX } from "../../common/props"; // this component is simple enough that tests would be purely tautological. /* istanbul ignore next */ var NavbarGroup = /** @class */ (function (_super) { tslib_1.__extends(NavbarGroup, _super); function NavbarGroup() { return _super !== null && _super.apply(this, arguments) || this; } NavbarGroup.prototype.render = function () { var _a = this.props, align = _a.align, children = _a.children, className = _a.className, htmlProps = tslib_1.__rest(_a, ["align", "children", "className"]); var classes = classNames(Classes.NAVBAR_GROUP, Classes.alignmentClass(align), className); return (React.createElement("div", tslib_1.__assign({ className: classes }, htmlProps), children)); }; NavbarGroup.displayName = DISPLAYNAME_PREFIX + ".NavbarGroup"; NavbarGroup.defaultProps = { align: Alignment.LEFT, }; return NavbarGroup; }(React.PureComponent)); export { NavbarGroup }; //# sourceMappingURL=navbarGroup.js.map