Stylish Masonry
A masonry layout — the web "Masonry" pattern from Ant Design and MUI.
Distributes itemCount items across columns vertical columns, filling each column top-to-bottom. Items may have arbitrary heights; the columns share the available width equally. Note: items are assigned to columns in round-robin order (index % columns), which keeps the layout deterministic without measuring item heights. For height-balanced columns, prefer a lazy grid or manual grouping.
Parameters
Number of items to lay out.
Modifier applied to the root row.
Number of columns. Defaults to 2.
Gap between columns. Defaults to StylishTheme.dimensions.itemSpacing.
Gap between items within a column. Defaults to StylishTheme.dimensions.itemSpacing.
Composes the item at index. Receives ColumnScope so items can use Modifier.weight.