Skip to main content

DndDebugOverlay

Function DndDebugOverlay 

Source
pub fn DndDebugOverlay<T: Clone + PartialEq + 'static>(
    _: DndDebugOverlayProps<T>,
) -> Element
Expand description

Draws every registered zone of one payload world as a tinted outline (color derived from the zone id, so it’s stable across renders), with the zone’s label and id in a tag, live data-over highlighting, and per-zone acceptance state while a drag is in flight. Render one per provider, anywhere inside it. Dev-only - see the module docs.

Click-through by design (pointer-events: none), so it never changes the interaction it inspects. Zones the registry hasn’t measured yet draw no outline; the chip counts them so absence is visible too.

§Props

For details, see the props struct definition.

  • phantom : std::marker::PhantomData<T>

    Internal marker; never set this.