cedricdelpoux / react-responsive-masonry

React responsive masonry component built with css flexbox
https://cedricdelpoux.github.io/react-responsive-masonry/
MIT License
353 stars 35 forks source link

Change each column's inline styles #122

Closed JacobCll closed 1 day ago

JacobCll commented 2 weeks ago

The library has been very useful to me however I couldn't further tweak how the columns would behave because there is no way, as far as I know, for me to change each column's assigned inline styles.

a column's inline styles: <div style="display: flex; flex-direction: column; place-content: stretch flex-start; flex: 1 1 0%; width: 0px; gap: 0px;"></div>

Is there a workaround to changing these inline styles? It would be useful if there were a way to change how each column behaved.

cedricdelpoux commented 1 day ago

There is a new itemStyle prop available in v2.3.0. You can check the README