Open this example in the interactive library
Source code
<button
class="demo disabled:opacity-50 disabled:cursor-not-allowed"
type="button"
disabled
>
Disabled
</button>
Dim a disabled control with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<button
class="demo disabled:opacity-50 disabled:cursor-not-allowed"
type="button"
disabled
>
Disabled
</button>