UNPKG

@blueprintjs/core

Version:
23 lines 924 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 { Elevation } from "../../common/elevation"; import { DISPLAYNAME_PREFIX } from "../../common/props"; export class Card extends React.PureComponent { render() { const { className, elevation, interactive, ...htmlProps } = this.props; const classes = classNames(Classes.CARD, { [Classes.INTERACTIVE]: interactive }, Classes.elevationClass(elevation), className); return React.createElement("div", Object.assign({ className: classes }, htmlProps)); } } Card.displayName = `${DISPLAYNAME_PREFIX}.Card`; Card.defaultProps = { elevation: Elevation.ZERO, interactive: false, }; //# sourceMappingURL=card.js.map