UNPKG

@rocketsofawesome/mirage

Version:

[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)

48 lines (43 loc) 1.11 kB
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { FlexCol, FlexRow, OutfitCards } from 'SRC' const OutfitsListing = styled(({ className, element, headerContent, outfits, nextLink }) => { return ( <div className={className}> {headerContent && <FlexRow constrained> <FlexCol className='roa-outfits-header' element='header'> {headerContent} </FlexCol> </FlexRow> } <OutfitCards element={element} outfits={outfits} nextLink={nextLink} /> </div> ) })` .roa-outfits-header { margin: 1.6rem 2.4rem 0.8rem 2.4rem; > * { flex-basis: 100%; text-align: center; margin: 0.8rem; } } ${props => props.theme.breakpointsVerbose.aboveTablet` .roa-outfits-header { margin: 2.4rem 2.4rem 1.6rem 2.4rem; } `} ` OutfitsListing.propTypes = { element: PropTypes.node, headerContent: PropTypes.array, outfits: PropTypes.array } OutfitsListing.defaultProp = { element: 'a', outfits: [] } /** @component */ export default OutfitsListing