Last active
February 6, 2020 11:46
-
-
Save geekysrm/043221dfdfd5079c8799729b5edab34a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import tw from "tailwind.macro" | |
import styled from "@emotion/styled" | |
const MyComponent = styled.div` | |
${tw`bg-white | |
rounded-lg | |
overflow-hidden | |
border`} | |
height: 409px; | |
img { | |
height: 265px; | |
object-fit: cover; | |
object-position: center; | |
} | |
` | |
export default MyComponent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment