v8-ui-atoms
Version:
A library of common base components for building ui
16 lines • 436 B
JavaScript
import styled from "styled-components";
export const Image = styled.img `
${({ cssWidth, cssHeight, cssMaxHeight, objectFit }) => `
width: ${cssWidth || "100%"};
height: ${cssHeight || "auto"};
max-height: ${cssMaxHeight || "initial"};
object-fit:${objectFit || "initial"}`};
`;
export const Picture = styled.picture `
${(props) => `
img {
max-width: 100%;
}
`}
`;
//# sourceMappingURL=Image.styles.js.map