solid-dnd
solid-dnd copied to clipboard
Bento Draggable Layout
Hi, what is the best way to implement a bento.me like behaviour? which package utilities can be used, which example will more close?
Kind of Draggable Masonry layout
where i can have items with different width and height and they will fit inside some area
Hmmm. You'd likely need to implement a custom collision detector and custom transformers to compute the layout. Looking at the sortable implementation is potbelly useful.
Alternatively, you could try actually moving things around in a standard css grid layout and then calling recomputeLayouts 🤔
I might try creating an example for this in future so do share if you get anywhere with it.
Hi, thanks for reply. Decided to go with https://react-grid-layout.github.io/react-grid-layout/examples/0-showcase.html for now. It fits perfect for task like this