Created
February 16, 2022 18:01
-
-
Save Elijah-trillionz/78d4ea29d13b03b004330774689d46f0 to your computer and use it in GitHub Desktop.
VSCode minimal snippets for working with 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
{ | |
"Styled components file": { | |
"prefix": "stc", | |
"body": [ | |
"import styled from 'styled-components'\n\nexport const ${1:${TM_FILENAME_BASE}} = styled.${2:div}`\n$0\n`;" | |
] | |
}, | |
"Styled component": { | |
"prefix": "btc", | |
"body": ["export const ${1:Div} = styled.${2:div}`\n$0\n`;"] | |
}, | |
"Styled component inherited": { | |
"prefix": "ibtc", | |
"body": ["export const ${1:Div} = styled(${2:Body})`\n$0\n`;"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment