Pointer events

Utilities for controlling whether an element responds to pointer events.

In this article

Class Properties
.pointer-events-none pointer-events: none;
.pointer-events-auto pointer-events: auto;


Use .pointer-events-none to make an element ignore pointer events. The pointer event will go “through” the element and target whatever is “underneath” that element instead.

Use .pointer-events-auto to have an element behave as it would if the pointer-events property were not specified.


By default, no responsive or hover-state variants are generated for pointer event utilities.


To include responsive variants like .md:pointer-events-none, add "pointer-events" to the $responsive-variants variable in your theme’s _variables.scss file when recompiling your CSS:

$responsive-variants: (
  // ...


To include hover-state variants like .hover:pointer-events-none, add "pointer-events" to the $hover-variants variable:

$hover-variants: (
  // ...

Questions or feedback about this article? Let us know