pointer-events
Utilities for controlling whether an element responds to pointer events.
| Class | Effect |
|---|---|
pointer-events-auto |
pointer-events: auto; |
pointer-events-none |
pointer-events: none; |
Examples
Section titled “Examples”Ignoring pointer events
Section titled “Ignoring pointer events”Use pointer-events-none to let clicks fall through to whatever is below. The icon here does not block the field.


if ui.div("relative w-72") { ui.text_input(&s.demo.email, "w-full rounded-lg bg-white py-2 pr-3 pl-9 text-sm text-gray-950 ring-1 ring-gray-300 focus:ring-2 focus:ring-violet-500 dark:bg-gray-900 dark:text-white dark:ring-white/15", "Search") ui.icon(IC.magnifying_glass, "pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-gray-400")}