Created
February 17, 2019 18:27
-
-
Save viclotana/8eb980e82489cc4efedc4097eb85f97a 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 Subtitle = styled.h2` | |
font-size: 2em; | |
color: ${props => props.primary ? 'red' : 'green'}; | |
`; | |
<Subtitle primary>Hello World</Subtitle> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment