Support css<Props>`` like element<Props>``
See original GitHub issueThe styled-components css
tag passes props through from the parent element, so something like:
interface Props {
//...
}
const baseHeadingStyles = css<Props>`
//...
`;
is perfectly valid. This doesn’t get recognized by the extension though.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Support css<Props> like element<Props> #206 - GitHub
Support css<Props > like element<Props> #206 ... The styled-components css tag passes props through from the parent element, so something like:.
Read more >Typescript React: Access component property types
The question is how do I access that information from the component class itself without explicitly exporting/importing the type for props? I ...
Read more >API Reference - styled-components
The css prop is a convenient way to iterate on your components without settling on fixed component boundaries yet. It works on both...
Read more >Documentation - JSX - TypeScript
TypeScript supports embedding, type checking, and compiling JSX directly to JavaScript. ... For React, intrinsic elements are emitted as strings ( React.
Read more >How to Overload TypeScript React Component Interfaces by ...
This article explains how to create correct, intuitive APIs for React components in TypeScript by using prop values to overload React components.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
What isn’t working? The highlighting?
This plugin doesn’t provide the highlighting. That comes from https://marketplace.visualstudio.com/items?itemName=jpoissonnier.vscode-styled-components
Yeah this is about the highlighting.