Skip to content

Inert

af-inert disables interaction within a subtree (it sets pointer-events: none and user-select: none).

ClassStyles
af-inertpointer-events: none; user-select: none
Disable a subtree
<div class="af-inert">
  <button class="af-btn">
    Can't be clicked
  </button>
</div>