Grid

fun <T> Grid(modifier: Modifier, items: List<T>, columns: Int, rowSpacing: Dp, columnSpacing: Dp, itemView: @Composable (T) -> Unit)

A replication of LazyVerticalGrid - but not lazy.

Parameters

modifier

The modifier that is applied to this component.

items

The items that will be displayed in the grid.

columns

The amount of columns the grid should have.

rowSpacing

The spacing between rows.

columnSpacing

The spacing between columns.

itemView

The view that will be drawn into a cell and represents the item.