AI-native design editor. Open-source Figma alternative.
title: useLayerDrag description: Drag-and-drop wiring helper for layer tree reordering.
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.