Skip to content

useCanvasDrop ​

useCanvasDrop(canvasRef, editor) wires dragenter, dragover, dragleave, and drop handling so image files dropped on the canvas are placed into the scene.

Use it when building custom canvas surfaces that accept image drops.

Released under the MIT License.