Last active
January 24, 2020 07:06
-
-
Save sketchbuch/8deb902714f2538bd0eac10c1d62f1ca to your computer and use it in GitHub Desktop.
TS - Typescript Types For Styled Components
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
export const StyledImg = styled.img<StyledImgProps>` | |
position: relative; | |
` | |
// Overriding a styled component's styles | |
export const StyledIcon = styled(Img)<StyledIconProps>` | |
position: relative; | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment