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

[NEW FEATURE] Support components as selectors

Open budde377 opened this issue 6 years ago • 2 comments
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?

budde377 avatar Nov 08 '19 16:11 budde377

this update would be too cool

Pacch avatar Nov 29 '19 15:11 Pacch

Hello. Any update in here? Is it possible to reference a child componente from its parent?

pgonzalez-santiago avatar Nov 25 '21 09:11 pgonzalez-santiago