UNPKG

@blueprintjs/core

Version:
24 lines 1 kB
/* * Copyright 2017 Palantir Technologies, Inc. All rights reserved. * * Licensed under the terms of the LICENSE file distributed with this project. */ 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 */ export class NavbarGroup extends React.PureComponent { render() { const { align, children, className, ...htmlProps } = this.props; const classes = classNames(Classes.NAVBAR_GROUP, Classes.alignmentClass(align), className); return (React.createElement("div", Object.assign({ className: classes }, htmlProps), children)); } } NavbarGroup.displayName = `${DISPLAYNAME_PREFIX}.NavbarGroup`; NavbarGroup.defaultProps = { align: Alignment.LEFT, }; //# sourceMappingURL=navbarGroup.js.map