babel-plugin-styled-components icon indicating copy to clipboard operation
babel-plugin-styled-components copied to clipboard

Better naming for styled components nested in objects.

Open avin-kavish opened this issue 3 years ago • 0 comments

Would be good to have class names based on the full object path for styled components declared inside objects. i.e.,

// Product.tsx

const Wishlist = {
  Wrapper: styled`

  `
}

<Wishlist.Wrapper>

</Wishlist.Wrapper>

currently, the generated class name is Product__Wrapper would be good to have Product_Wishlist__Wrapper instead.

avin-kavish avatar Mar 14 '22 03:03 avin-kavish