jsx code:
<div className="[&>button]:text-white,px-6 flex gap-2">
<button>Right</button>
<button>Left</button>
<button>Circle</button>
<button>Square</button>
<button>Stop</button>
</div>
I was wondering if there was a way in tailwind that would allow me to use multiple classes on all the buttons at once in oneline in react?
so all the btns can take classes
"text-white px-6
and also give the parent div
his own classes "flex gap-2"
rather than typing [&>button]:text-white [&>button]:px-6