-
Is there a way to show a drop indicator without moving the draggable source? Good example is in Figma where they should you a black bar representing the drop indicator but keeping the source in palce. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, refer to these two examples: https://master--5fc05e08a4a65d0021ae0bf2.chromatic.com/?path=/story/examples-pages-layout--grid https://master--5fc05e08a4a65d0021ae0bf2.chromatic.com/?path=/story/examples-tree-sortable--drop-indicator If you don't want to move the draggable source at all, don't pass it the |
Beta Was this translation helpful? Give feedback.
Yes, refer to these two examples:
https://master--5fc05e08a4a65d0021ae0bf2.chromatic.com/?path=/story/examples-pages-layout--grid
https://github.com/clauderic/dnd-kit/tree/master/stories/3%20-%20Examples/Advanced/Pages
https://master--5fc05e08a4a65d0021ae0bf2.chromatic.com/?path=/story/examples-tree-sortable--drop-indicator
https://github.com/clauderic/dnd-kit/tree/master/stories/3%20-%20Examples/Tree
If you don't want to move the draggable source at all, don't pass it the
transform
property and don't use<DragOverlay>
.