UNPKG

@blueprintjs/core

Version:
25 lines 1.12 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 * 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 ButtonGroup extends React.PureComponent { render() { const { alignText, className, fill, minimal, large, vertical, ...htmlProps } = this.props; const buttonGroupClasses = classNames(Classes.BUTTON_GROUP, { [Classes.FILL]: fill, [Classes.LARGE]: large, [Classes.MINIMAL]: minimal, [Classes.VERTICAL]: vertical, }, Classes.alignmentClass(alignText), className); return (React.createElement("div", Object.assign({}, htmlProps, { className: buttonGroupClasses }), this.props.children)); } } ButtonGroup.displayName = `${DISPLAYNAME_PREFIX}.ButtonGroup`; //# sourceMappingURL=buttonGroup.js.map