I'd like to recreate an accordion component into Tailwind CSS. What is the workaround with ${active} state of the button?
Here is the code from original component:
<button className={`question-section ${active}`} onClick={toggleAccordion}>
And here it is with Tailwind, where I have no idea where to put ${active}:
<button
className="bg-transparent border-slate-600 rounded-lg shadow-md pointer w-screen"
{${active}}
onClick={toggleAccordion}
>
Will appreciate, thanks ✌️