Open this example in the interactive library
Source code
<button class="demo hover:bg-teal-200" type="button">Try this button</button>
Change a button background on hover with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<button class="demo hover:bg-teal-200" type="button">Try this button</button>