cedricdelpoux / react-responsive-masonry

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

Change each column's inline styles #122

Closed JacobCll closed 4 months ago

JacobCll commented 4 months 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 4 months ago

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