Open bnbon opened 2 years ago
@bonbonio Thanks for the feedback! Would you mind sharing your use case in a Code Sandbox?
I think it's clear enough considering the functionality that exists in the experimental GridV2; it's bringing over the responsive breakpoints into the cols={} attribute.
I'll add that useMediaQuery does not work with server side rendering. So, currently ImageList is not a viable option if you are using SSR and want to change the number of columns responsively.
After checking the implementation, I think we could add the responsiveness to the ImageList similar to Grid v2. cc @hbjORbj if you are interested in this.
Duplicates
Latest version
Summary 💡
It would be great if ImageList also support the
columns={{ xs: 4, sm: 8, md: 12 }}
attribute like the new experimental GridV2.Many thanks on the great work.
Examples 🌈
No response
Motivation 🔦
Currently I need to import the useMediaQuery utils and use a switch for this.