Can the React Material-UI library's GridList
component be used in a layout similar to Pinterest's cascading style?
I have utilized Material-UI Card
components as children for the GridList
:
const cards = props.items.map((item) => <Card key={item.id} {...item} />);
return (
<GridList cols={3} cellHeight={'auto'}>
{React.Children.toArray(cards)}
</GridList>
);
The output looks like this: https://i.stack.imgur.com/8hO16.png
I am seeking assistance in eliminating the gaps marked by red circles. Any guidance on this matter would be greatly appreciated.