UNPKG

@rocketsofawesome/mirage

Version:

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

37 lines (32 loc) 622 B
import React from 'react' 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