Grid layout support?

Is there a way to create a grid layout? … maybe something like hstack with wrapping after odd indexed elements

Hey @zack, welcome to Judo.

If you mean like an auto-flex grid, this is something that has been requested in the past but is currently not a feature available.

I’ll add your comment here as a +1 for the feature request.

But there is a possibility for you here:

I’m assuming you mean for content that’s coming from a Data Source?

So if 5 results, put in a row of 2 row of 2 row of 1.
If 4 results, put it a row of 2 row of 2, end.

This sort of automatic/flex grid is not available yet, but you CAN create a manual set of rows if you do know the number of results.

This is done with the Collection layer.

So in your first “row” or HStack, you set the Collection to Limit to only show 2, starting at the first index.

Then in your next “row”/HStack, set to limit to 2 still, but start at index 3.

Like these screenshots:
Screen Shot 2022-09-15 at 1.04.49 PM

Screen Shot 2022-09-15 at 1.04.56 PM

Let me know if this is what you were after.

Cheers,
-Kevin