nikitaeverywhere / react-xmasonry

Simple, minimalistic and featured native masonry layout for React JS.
https://zitros.github.io/react-xmasonry
MIT License
91 stars 12 forks source link

Prop to force chronological order #27

Open Neesh774 opened 1 year ago

Neesh774 commented 1 year ago

Is it possible for a prop in the XMasonry component that forces left-to-right chronological order? Or perhaps a clone that accepts only XBlock components with width=1, so there's no issue with weird widths that don't match up.

nikitaeverywhere commented 1 year ago

Hello!

I'm not sure I understand, but if you go to the demo app and will be clicking "Add random card" many times under "Cards Demo", you'll see how cards are adding "in the chronological order". Ignore cards with width=2, as you can easily restrict it in the code.