border: ${(props: { error: boolean }) => (props.error ? '1px solid #F20D19' : '1px solid transparent')}; export const Img = styled.img<{ alt: string, src: string}>` margin-right: 15px; `;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter