Represents a container with a grid layout in a panel.
By default, the grid items are vertically stacked, but you can change the grid to use a different layout by setting the grid property to a different value.
You can understand UIPanelbody and footer properties as grid containers using default vertical stack layout.
Horizontal stack
As part of CSS Grid Layout capabilities it is possible to create a horizontal stack.
Alignment & Distribution
On horizontal stacks, it is possible to align and distribute the items.
verticalAlignment is used to align the items vertically. By default, items are aligned to the top of the container. It follows the same values as CSS's align-items property. See MDN documentation for more details.
horizontalDistribution is used to justify the items horizontally. By default, items are justified to the start of the container. It follows the same values as CSS's justify-content property. See MDN documentation for more details.
Equal width columns
Two columns, each sharing 50% of the container width
FlexibleSpace element
FlexibleSpace element is a handy solution to allow more control over grid layout.
If grid is not set, FlexibleSpace will add some space between the items. By using grid property it is possible to control FlexibleSpace's size.