Created
June 13, 2022 16:45
-
-
Save Damkols/3a026e39d45929f8ff4a3a9f79373af3 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
const StyledButton = styled.button` | |
border: 2px solid green; | |
background-color: ${(props) => (props.variant !== "outline" ? "white" : "green")}; | |
color: ${(props) => (props.variant === "outline" ? "green" : "white")}; | |
padding: 15px 32px; | |
text-align: center; | |
text-decoration: none; | |
font-size: 16px; | |
cursor: pointer; | |
// hover styles | |
&:hover { | |
background-color: ${(props) => (props.variant !== "outline" ? "white" : "green")}; | |
color: ${(props) => (props.variant !== "outline" ? "green" : "white")}; | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment