VirtuosoGrid component displays equally-sized items, while supporting multiple items per row.
The component provides no styling out of the box.
The styling and the layout of the items is be specified by passing two properties -
Alternatively, you can use styled components and pass them as
Either way, it is up to you to implement the layout with Flexbox or CSS grid. You can use plain old CSS or CSS in JS - the example uses Emotion.
You can safely use media queries,
min-width, percentages, etc. In the item layout definitions.
The grid observes the container/item dimensions and recalculates the scroll size accordingly.
Load the example below in codesandbox, resize, and scroll around - the items reposition correctly.