@newrelic/gatsby-theme-newrelic
Version:
[](https://opensource.newrelic.com/oss-category/#community-project)
26 lines (22 loc) • 480 B
JavaScript
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;