Created
February 17, 2019 17:58
-
-
Save viclotana/e5cc34eafcefea80af9881ed8bfa4cad 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 Button = styled.a` | |
display: inline-block; | |
border-radius: 3px; | |
padding: 0.5rem 0; | |
margin: 0.5rem 1rem; | |
width: 11rem; | |
background: transparent; | |
color: white; | |
border: 2px solid white; | |
${props => props.primary && css` | |
background: white; | |
color: palevioletred; | |
`} | |
` | |
render( | |
<div> | |
<Button | |
href="https://github.com/styled-components/styled-components" | |
target="_blank" | |
rel="noopener" | |
primary> | |
GitHub | |
</Button> | |
<Button as={Link} href="/docs" prefetch> | |
Documentation | |
</Button> | |
</div> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment