pickledvlad
TTCTheo's Typesafe Cult
•Created by pickledvlad on 5/27/2023 in #questions
Is there a library for grid-based drag-n-drop?
I've seen it before. Seems like there is no "layout engine" in this one and the snap-to-grid example feels limited and buggy - if you zoom in / zoom out the snap-to-grid example (draggable object "runs away" from my cursor). Maybe it's because cells and grid sizes are px-based.
It looks much more flexible/customizable than react-grid-layout though.
I guess the best option I have atm is to try implementing a custom layout logic on top of dndkit.
6 replies
TTCTheo's Typesafe Cult
•Created by pickledvlad on 5/27/2023 in #questions
Is there a library for grid-based drag-n-drop?
Thanks! This one looks great, the only thing I'm not sure about is if they allow creating custom rules for dropping items (to prevent stacking elements on top of each other). Will raise a discussion for this in their repo.
6 replies