Closed evertheylen closed 1 year ago
I was wondering if behaviour like this is in any way supported:
const SomeComponent = styled('div')({ color: 'green', }); const ParentComponent = styled('div')({ [SomeComponent]: { color: 'pink', }, });
(stackblitz, but it might be of limited use)
Emotion, the underlying library for MUI's styled function, does support it although you need a babel plugin.
styled
I just now got around to using this feature (and replacing the hacky solution I had for this), it works great. Thanks!
I was wondering if behaviour like this is in any way supported:
(stackblitz, but it might be of limited use)
Emotion, the underlying library for MUI's
styled
function, does support it although you need a babel plugin.