UNPKG

@newrelic/gatsby-theme-newrelic

Version:

[![Community Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Project.png)](https://opensource.newrelic.com/oss-category/#community-project)

29 lines (25 loc) 541 B
import React from 'react'; import PropTypes from 'prop-types'; import { css } from '@emotion/react'; const SkewedContainer = ({ className, children }) => ( <div className={className} css={css` background: var(--secondary-background-color); transform: skew(0, -2deg); `} > <div css={css` transform: skew(0, 2deg); `} > {children} </div> </div> ); SkewedContainer.propTypes = { className: PropTypes.string, children: PropTypes.node, }; export default SkewedContainer;