paulcollett / react-masonry-css

React Masonry layout component powered by CSS, dependancy free
https://paulcollett.github.io/react-masonry-css/demo/
MIT License
960 stars 66 forks source link

Add option for responsiveness based on element width #74

Open donoskaro opened 3 years ago

donoskaro commented 3 years ago

Greetings!

Not sure if this is of any use to anyone but I found this to be quite useful in a recent project. Namely, the option to use the width of the container div for the purpose of responsive calculations.

The rationale behind this is that the masonry grid may be on different pages w/ different layouts thereby having a different width which makes creating a "one size fits all" breakpoint rule set difficult.

I don't see this being a breaking change however I am not too familiar with the project.