Updated babel-plugin-styled-components to a new version that works. Added extra option to macros settings to not bother showing the file names.
11 lines
241 B
TypeScript
11 lines
241 B
TypeScript
import styled from "styled-components/macro";
|
|
|
|
type SpacerProps = {
|
|
width?: string,
|
|
height?: string;
|
|
};
|
|
export const Spacer = styled.div<SpacerProps>`
|
|
width: ${({ width = "0" }) => width};
|
|
height: ${({ height = "0" }) => height};
|
|
`;
|