Pointer Events
Set 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
Usage
Auto
Allow the element to receive pointer events as normal.
Try clicking the search emoji to see how the input reacts.
🔎
<div> <label class="d-b fw-600 c-slate mb-1">Auto</label> <div class="p-r"> <input class="bw-1 bc-gray-2 pl-10 pr-4 py-2 w-full" placeholder="Search..." /> <div class="ai-c d-f b-0 l-0 t-0 p-a pe-auto pl-3">🔎</div> </div></div>None
Prevent the element from receiving any pointer events.
🔎
<div> <label class="d-b fw-600 c-slate mb-1">None</label> <div class="p-r"> <input class="bw-1 bc-gray-2 pl-10 pr-4 py-2 w-full" placeholder="Search..." /> <div class="ai-c d-f b-0 l-0 t-0 p-a pe-none pl-3">🔎</div> </div></div>Using utility variants
Override existing utilities based on the user's screen size or other factors, such as hover states.
Responsive Design
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
sm:pe-[value]Small≥640px
md:pe-[value]Medium≥768px
lg:pe-[value]Large≥1024px
xxl:pe-[value]Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:pe-[value]