React Masonry

Disclamer: most of what this component does can be done with CSS.

Places stones (elements) in optimal positions by stacking them from left to right and from top to bottom.

Elements rendered inside Masonry must be :

  • DOM elements
  • or a component that passes the ref and style to a react element
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading
loading