@gannochenko/ui.styled-components
Version:
<!-- PROJECT SHIELDS --> <!-- *** Reference links are enclosed in brackets [ ] instead of parentheses ( ). *** See the bottom of this document for the declaration of the reference variables *** for contributors-url, forks-url, etc. This is an optional, co
10 lines • 508 B
JavaScript
import { css } from 'styled-components';
import { getStyleFor } from './utils';
export const marginProps = ({ margin: allMargin, marginTop, marginBottom, marginLeft, marginRight, theme, }) => css `
${getStyleFor('margin', allMargin, theme)};
${getStyleFor('margin-top', marginTop, theme)};
${getStyleFor('margin-bottom', marginBottom, theme)};
${getStyleFor('margin-left', marginLeft, theme)};
${getStyleFor('margin-right', marginRight, theme)};
`;
//# sourceMappingURL=marginProps.js.map