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)

26 lines (22 loc) 480 B
import React from 'react'; import PropTypes from 'prop-types'; import { css } from '@emotion/react'; const CollapserGroup = ({ className, children }) => { return ( <div className={className} css={css` > *:not(:last-child) { margin-bottom: 0.5rem; } `} > {children} </div> ); }; CollapserGroup.propTypes = { className: PropTypes.string, children: PropTypes.node.isRequired, }; export default CollapserGroup;