I'm trying to use this syntax (using Emotion):
.switch[data-isOn="true"] {
justify-content: flex-end;
}
Inside my styled component:
const Switch = styled('div')({
cursor: 'pointer',
['data-ison'='true']: {
justifyContent: 'flex-end',
},
});
With no luck so far, how should I implement this?