I'm facing an issue where I need to hide an element if it has children.
In regular CSS, this is achieved with the following code:
&:not(:has(*)){
display: none
}
However, when trying to implement this in Tailwind, I'm struggling to figure it out. I've attempted a few approaches like the ones listed below, but none seem to work:
[&:not(:has(*)):hidden]
[&:not([&:has(*)]):hidden]
Is there a way to combine multiple random values in Tailwind?