Skip to content

useLayerDrag

useLayerDrag(editor, indentPerLevel?) wires pragmatic-drag-and-drop behavior for layer tree rows and maps drop instructions to editor reorder operations.

Use it when extending or replacing the default layer-tree drag UI.

Released under the MIT License.