UNPKG

@blueprintjs/core

Version:
23 lines 976 B
/* * 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 * 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 ControlGroup extends React.PureComponent { render() { const { children, className, fill, vertical, ...htmlProps } = this.props; const rootClasses = classNames(Classes.CONTROL_GROUP, { [Classes.FILL]: fill, [Classes.VERTICAL]: vertical, }, className); return (React.createElement("div", Object.assign({}, htmlProps, { className: rootClasses }), children)); } } ControlGroup.displayName = `${DISPLAYNAME_PREFIX}.ControlGroup`; //# sourceMappingURL=controlGroup.js.map