Just beginning to explore TailWindCSS, I am interested in adding conditional styling to a Button element for enabling/disabling it. Is there a way that I can apply specific styles/classes (such as "opacity-50 cursor-not-allowed") to the button based on certain conditions?
<button
className="bg-blue-500 hover:bg-blue-400 text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded mr-3"
disabled={!globalContext.users.length > 0}
onClick={handleClearResultsClick}
>
Clear Results
</button>