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)

24 lines (20 loc) 444 B
import React from 'react'; import PropTypes from 'prop-types'; import { css } from '@emotion/react'; const Section = ({ children, className }) => ( <section className={className} css={css` padding: 1rem; border: 1px solid var(--border-color); border-radius: 4px; `} > {children} </section> ); Section.propTypes = { className: PropTypes.string, children: PropTypes.node, }; export default Section;