solid-dnd icon indicating copy to clipboard operation
solid-dnd copied to clipboard

Bento Draggable Layout

Open nomercy360 opened this issue 1 year ago • 2 comments

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

63ea5abefbeb7e96b8d77a3f_desktop video small-transcode.webm

nomercy360 avatar Aug 19 '23 10:08 nomercy360

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.

martinpengellyphillips avatar Aug 26 '23 17:08 martinpengellyphillips

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

nomercy360 avatar Aug 28 '23 03:08 nomercy360