Renders a drop zone that can receive dragged items.
<form class="gc-full-width"> <.drop_zone id="drag-and-drop-single-default"> <div> <.box border="sm" padding="xl" id="draggable-pool" phx-hook="GC_DragDrop"> <p class="gc-font-weight-semibold gc-margin-bottom-sm">Draggable Items:</p> <.draggable id="item-1"> Item 1 </.draggable> <.draggable id="item-2"> Item 2 </.draggable> </.box> <.box border="sm" padding="2xl"> <.drop_zone id="dropzone-1"> <.drag_empty_state> Drag items here to add them </.drag_empty_state> </.drop_zone> </.box> </div> </.drop_zone> </form>
<form class="gc-full-width"> <.drop_zone id="drag-and-drop-single-with-dragging-placeholder"> <div> <.box border="sm" padding="xl" id="draggable-pool" phx-hook="GC_DragDrop"> <p class="gc-font-weight-semibold gc-margin-bottom-sm">Draggable Items:</p> <.draggable id="item-1"> Item 1 </.draggable> <.draggable id="item-2"> Item 2 </.draggable> </.box> <.box border="sm" padding="2xl"> <.drop_zone id="dropzone-1"> <.drag_placeholder> Drop items here </.drag_placeholder> <.drag_empty_state> Drag items here to add them </.drag_empty_state> </.drop_zone> </.box> </div> </.drop_zone> </form>