My recent app created as an output an image grid. Since the images were all different sizes and aspect ratios, it was hard to show them all at once. Putting
st.image only showed a few at a time.
As a solution I was able to create a little component that used a CSS “masonry” image board and use it using
st.components.v1.html. I thought it might be useful to the rest of the community, so check out the examples below and the code here.