Skip to content

pointer-events

Utilities for enabling or suppressing hit-testing and mouse events on an element subtree.

InteractivityTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating pointer-events
ISS preview for pointer-events
use iced::widget::container;
use iss::{tw, TwExt};
let overlay = container(watermark).tw(tw!("absolute inset-0 pointer-events-none flex items-center justify-center"));
Tailwind Class CSS Property / Effect iss::typed Builder
pointer-events-none pointer-events: none; .pointer_events_none()
pointer-events-auto pointer-events: auto; .pointer_events_auto()
  • pointer-events-none passes clicks through to underlying widgets while allowing nested pointer-events-auto children to remain interactive.

cursor · user-select · visibility