Files
test/src/components/Workspaces/CustomWorkSpaces/styles.ts
T
Kyle Geib 3b165c42e9 ISSUE-068 - Now Styled-Components can self-label.
Updated babel-plugin-styled-components to a new version that works.
Added extra option to macros settings to not bother showing the file names.
2022-03-14 12:02:12 -05:00

22 lines
462 B
TypeScript

import styled from "styled-components/macro";
import { Px } from "../../../types/style";
type BasicBlockProps = {
width: Px,
height: Px,
color: string,
center?: boolean,
}
export const BasicBlock = styled.div<BasicBlockProps>`
display: flex;
justify-content: center;
align-items: center;
width: ${({ width }) => `${width}px`};
height: ${({ height }) => `${height}px`};
background-color: ${({ color }) => color};
border-radius: 15px;
`;