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 for the purpose.
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. The example below uses inline styling, but you can easily put the styles in a stylesheet and change the item sizes with media queries.