Skip to content

Instantly share code, notes, and snippets.

@aaronmcadam
Created April 11, 2017 16:21
Show Gist options
  • Save aaronmcadam/ebfd4dce5b3fe824791da36c03c1b51f to your computer and use it in GitHub Desktop.
Save aaronmcadam/ebfd4dce5b3fe824791da36c03c1b51f to your computer and use it in GitHub Desktop.
import React from 'react';
import styled from 'styled-components';
import { Row } from 'react-styled-flexboxgrid';
import { base as baseTheme } from '../../cl-themes/src';
const PanelHeader = styled(Row).attrs({
between: 'xs',
middle: 'xs',
})`
background-color: ${(props) => props.theme.palette.panel};
border-bottom: ${(props) => `1px solid ${props.theme.palette.border}`};
`;
PanelHeader.defaultProps = {
theme: baseTheme,
};
export default PanelHeader;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment