v3/packages/design-system/atoms/space/Space.tsx
2021-07-17 19:23:35 -04:00

17 lines
450 B
TypeScript

import { palette } from '@roleypoly/design-system/atoms/colors';
import styled, { css } from 'styled-components';
export const Space = styled.div`
height: 15px;
`;
export const LinedSpace = styled.div<{ width?: number; color?: string }>`
height: 7.5px;
margin-top: 7.5px;
border-top: 1px solid ${(props) => (props.color ? props.color : palette.taupe300)};
${(props) =>
props.width &&
css`
width: ${props.width}px;
`}
`;