GridPad is a Jetpack Compose library that allows you to place UI elements in a predefined grid, manage spans in two dimensions, have flexible controls to manage row and column sizes.
There is no direct API but you can use fixed (GridPadCellSize.Fixed) row and column size with span sizes equal to row and column size to achieve your goal.
horizontal and vertical