Replies: 4 comments 1 reply
-
Would be great to have. |
Beta Was this translation helpful? Give feedback.
-
Good idea! Will try to check it out, but as always I’d be happy to accept any PR that includes this improvement. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, I've spent about 2 days on this and I finally have a solution and figured I would share my implementation. My requirements were
To do this, I used two virtualizers: a row virtualizer and a column virtualizer These separate virtualizers are super important since the row virtualizer establishes the height/position of the entire row of items....instead of just being able to control the absolute position of individual items. By doing so, we can now use As a result you get something like this : ) Here is my implementation, I use tailwind which I defined my breakpoints in already, so I can use that as my default breakpoints. This component should be reusable to define your own breakpoints too but most of my elements use the same grid styling
You can then use it like this
Where Let me know of any improvements, but pretty pleased with how this is working out. Hope this helps! Took me ages. |
Beta Was this translation helpful? Give feedback.
-
Hey guys,
I recently discovered the new gap option. We use a Masonry list and tried to add space between the elements. It seems that the gap gets only added vertically, but not horizontally. Is there any other option for this?
Our virtualizer is configured like this:
Beta Was this translation helpful? Give feedback.
All reactions