bushido-strap
Version:
a library of styled components with material theme
19 lines (17 loc) • 533 B
JavaScript
import { css } from "styled-components";
import {
columnDirection,
flexJustify,
centerAlign,
flexContent,
flexWrap,
} from "../../maps";
export default css`
display: flex;
flex-wrap: ${flexWrap};
flex-direction: ${(props) =>
props.direction ? props.direction : columnDirection};
justify-content: ${(props) => (props.justify ? props.justify : flexJustify)};
align-items: ${(props) => (props.align ? props.align : centerAlign)};
align-content: ${(props) => (props.content ? props.content : flexContent)};
`;