T2 Grid Supports
Adds a custom WordPress support for t2 grid. This grid sets the parent block to be a grid container with an adjustable default setting for rows and columns, and adds a new toolbar button for controling the child block width and height, allowing for an easy to use masonry layout.
Example
block.json
{
"version": "0.0.0",
"apiVersion": 3,
"name": "t2/selling-points",
"title": "Selling Points",
"description": "Display useful information in a tile layout.",
"category": "design",
"supports": {
"align": ["wide", "full"],
"t2": {
"grid": {
"columns": [3, 4, 6, 9],
"rows": [1, 2]
}
}
}
}
The configuration above enables each child of the t2/selling-points
block to span across 3, 4, 6 or 9 columns (25%, 33%, 50%, 75% width), and 1 or 2 rows.