Skip to content

Native Drag & Drop

is-droppable enables native HTML5 drag and drop, and drop-item sets the default candidate size. When a drop is accepted, the drop event returns the candidate and preview layout; the application then inserts the new item.

Try it: Drag the source into the grid to add a 2 × 2 item. Disable the target and try again.

Live demo

Released under the MIT License.