vue-styled-components
vue-styled-components copied to clipboard
[NEW FEATURE] Support components as selectors
trafficstars
Thanks for a great project. We are currently trying to reference other components in the CSS, i.e.,
const Inner = styled.div`
`
const Container = styled.div`
${Inner} {
background-color: red;
}
`
but it seems that it'll stringify the component rather than resolve a class-name. I also found no examples of this in the project. Is this not supported?
this update would be too cool
Hello. Any update in here? Is it possible to reference a child componente from its parent?