Last active
March 2, 2019 14:10
-
-
Save kamleshchandnani/0a54dc8f557b0ca60d6fe21bc912d8c0 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 Link = styled.a` | |
color: ${(props) => props.theme.color.blue}; | |
text-decoration: none; | |
cursor: pointer; | |
&:hover { | |
color: ${(props) => props.theme.color.blueDark}; | |
} | |
&:focus { | |
outline: none; | |
text-decoration: underline; | |
color: ${(props) => props.theme.color.blueDark}; | |
} | |
`; | |
Link.defaultProps = { | |
color: 'blue', // this gets passed down to the <a color="blue"/> tag as attribute | |
}; | |
export default Link; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment