Open this example in the interactive library
Source code
<style>
.demo:disabled {
opacity: 0.5;
cursor: not-allowed;
}
</style>
<button class="demo" type="button" disabled>Disabled</button>
Dim a disabled control with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo:disabled {
opacity: 0.5;
cursor: not-allowed;
}
</style>
<button class="demo" type="button" disabled>Disabled</button>