@blueprintjs/core
Version:
Core styles & components
20 lines • 834 B
JavaScript
/*
* 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 { DIVIDER } 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 Divider extends React.PureComponent {
render() {
const { className, tagName: TagName = "div", ...htmlProps } = this.props;
const classes = classNames(DIVIDER, className);
return React.createElement(TagName, Object.assign({}, htmlProps, { className: classes }));
}
}
Divider.displayName = `${DISPLAYNAME_PREFIX}.Divider`;
//# sourceMappingURL=divider.js.map