Skip to content

Instantly share code, notes, and snippets.

@Elijah-trillionz
Created February 16, 2022 18:01
Show Gist options
  • Save Elijah-trillionz/78d4ea29d13b03b004330774689d46f0 to your computer and use it in GitHub Desktop.
Save Elijah-trillionz/78d4ea29d13b03b004330774689d46f0 to your computer and use it in GitHub Desktop.
VSCode minimal snippets for working with styled-components
{
"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