vscode-styled-components icon indicating copy to clipboard operation
vscode-styled-components copied to clipboard

Support for calling styled like a regular function?

Open AlansCodeLog opened this issue 6 years ago • 0 comments

Would it be possible to add syntax highlighting when styled is called like a regular function:

styled.div([], props => `
    prop: ${props.some.prop};
`)

I really hated having to do ${props => props.some.prop} in templates all the time. So I switched to calling styled like this. Works like a charm except it loses syntax highlighting.

AlansCodeLog avatar Feb 16 '19 05:02 AlansCodeLog