InteractivityPointer Events

Pointer Events

Controls how an item responds to pointer events.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
pe-autopointer-events: auto;
pe-nonepointer-events: none;

Auto

Initial value

The element can receive pointer events as normal.

Try clicking the search emoji to see how the input reacts.
🔎
<div>
<label class="d-b fw-600 tc-slate mb-1">Auto</label>
<div class="p-r">
<input class="b-1 bc-gray-2 pl-10 pr-4 py-2 w-full" placeholder="Search..." />
<div class="ai-c d-f bo-0 l-0 t-0 p-a pe-auto pl-3">🔎</div>
</div>
</div>

None

The element won't receive any pointer events, meaning you can't click on it.

Try clicking the search emoji to see how the input reacts.
🔎
<div>
<label class="d-b fw-600 tc-slate mb-1">None</label>
<div class="p-r">
<input class="b-1 bc-gray-2 pl-10 pr-4 py-2 w-full" placeholder="Search..." />
<div class="ai-c d-f bo-0 l-0 t-0 p-a pe-none pl-3">🔎</div>
</div>
</div>

Using utility variants

Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.

Targeting different viewports

You can combine responsive breakpoints like sm:pe-*, md:pe-*, lg:pe-*, and xxl:pe-* to allow targeting specific utilities in different viewports.

Targeting hover states

Alternatively, you can apply :hover by using h:pe-* utility to override elements and change their values when hovering over them.