UNPKG

azure-devops-ui

Version:

React components for building web UI in Azure DevOps

11 lines (10 loc) 662 B
import "../../CommonImports"; import "../../Core/core.css"; import "./Card.css"; import * as React from "react"; import { Spacing, Surface, SurfaceBackground, SurfaceContext } from '../../Surface'; import { css } from '../../Util'; export const CustomCard = props => { return (React.createElement(SurfaceContext.Consumer, null, surfaceContext => (React.createElement(Surface, Object.assign({}, surfaceContext, { spacing: Spacing.default }), React.createElement("div", { className: css(props.className, "bolt-card flex-column depth-8", surfaceContext.background === SurfaceBackground.neutral && "bolt-card-white") }, props.children))))); };