@rocketsofawesome/mirage
Version:
[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)
38 lines (33 loc) • 661 B
JavaScript
import React from 'react'
import styled from 'styled-components'
import PropTypes from 'prop-types'
import { FlexRow, FlexCol } from 'SRC'
const Solo = ({
className,
constrained,
padding,
...props
}) => {
return (
<FlexRow
constrained={constrained}
className={className}
padding={padding}>
<FlexCol
mobile={{width: 4}}
tablet={{width: 12}}
desktop={{width: 12}}
{...props}/>
</FlexRow>
)
}
Solo.propTypes = {
className: PropTypes.string,
constrained: PropTypes.bool,
padding: PropTypes.bool
}
Solo.defaultProps = {
constrained: false,
padding: true
}
export default Solo