Skip to content
Search
Search the documentation
Custom shadow placeholder
GitHub 0

Custom shadow placeholder

Draw your own placeholder where the dragged item would land.

  • Stretch
  • Walk
  • Read
  • Cook

4 items, not counting the shadow item.

During a pointer drag the zone’s items contain a shadow item, a copy of the dragged item with isDndShadowItem set to true. The library hides the element of the shadow item, so the demo draws a dashed box in it with visibility: visible. The counter leaves the shadow item out by that marker, not by its id, because the id changes during the drag (see how it works). Keyboard drags add no shadow item, so the placeholder only shows for the mouse and touch. See how it works for the shadow item and the options for the zone options.

The styling guide explains the placeholder.

Edit this page Last updated: Nov 22, 2026