{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "designsetgo/grid",
  "version": "1.0.0",
  "title": "Grid",
  "category": "designsetgo",
  "description": "Responsive multi-column grid layouts. Perfect for feature grids, product listings, team members, and card layouts.",
  "keywords": [
    "grid",
    "columns",
    "layout",
    "container",
    "responsive"
  ],
  "textdomain": "designsetgo",
  "icon": "grid-view",
  "supports": {
    "anchor": true,
    "align": [
      "wide",
      "full"
    ],
    "html": false,
    "inserter": true,
    "layout": {
      "allowSwitching": false,
      "allowInheriting": false,
      "allowEditing": false,
      "allowSizingOnChildren": true,
      "default": {
        "type": "default"
      }
    },
    "spacing": {
      "margin": true,
      "padding": true,
      "blockGap": true,
      "__experimentalDefaultControls": {
        "padding": true,
        "blockGap": true
      }
    },
    "dimensions": {
      "minHeight": true
    },
    "color": {
      "background": true,
      "text": true,
      "gradients": true,
      "link": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true
      }
    },
    "background": {
      "backgroundImage": true,
      "backgroundSize": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    },
    "shadow": true,
    "position": {
      "sticky": true
    },
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true,
      "__experimentalDefaultControls": {
        "color": true,
        "radius": true,
        "style": true,
        "width": true
      }
    }
  },
  "attributes": {
    "align": {
      "type": "string",
      "default": "full"
    },
    "tagName": {
      "type": "string",
      "default": "div"
    },
    "desktopColumns": {
      "type": "number",
      "default": 3
    },
    "tabletColumns": {
      "type": "number",
      "default": 2
    },
    "mobileColumns": {
      "type": "number",
      "default": 1
    },
    "rowGap": {
      "type": "string",
      "default": ""
    },
    "columnGap": {
      "type": "string",
      "default": ""
    },
    "style": {
      "type": "object",
      "default": {
        "spacing": {
          "blockGap": "var:preset|spacing|50",
          "padding": {
            "top": "var:preset|spacing|50",
            "bottom": "var:preset|spacing|50",
            "left": "var:preset|spacing|30",
            "right": "var:preset|spacing|30"
          }
        }
      }
    },
    "alignItems": {
      "type": "string",
      "default": "stretch"
    },
    "textAlign": {
      "type": "string"
    },
    "hoverBackgroundColor": {
      "type": "string",
      "default": ""
    },
    "hoverTextColor": {
      "type": "string",
      "default": ""
    },
    "hoverIconBackgroundColor": {
      "type": "string",
      "default": ""
    },
    "hoverButtonBackgroundColor": {
      "type": "string",
      "default": ""
    },
    "constrainWidth": {
      "type": "boolean",
      "default": false
    },
    "contentWidth": {
      "type": "string",
      "default": ""
    }
  },
  "providesContext": {
    "designsetgo/alignItems": "alignItems",
    "designsetgo/textAlign": "textAlign",
    "designsetgo/hoverIconBackgroundColor": "hoverIconBackgroundColor",
    "designsetgo/hoverButtonBackgroundColor": "hoverButtonBackgroundColor"
  },
  "example": {
    "attributes": {
      "desktopColumns": 3,
      "tabletColumns": 2,
      "mobileColumns": 1
    },
    "innerBlocks": [
      {
        "name": "core/group",
        "attributes": {
          "style": {
            "spacing": {
              "padding": "1rem"
            },
            "border": {
              "width": "1px",
              "style": "solid"
            }
          }
        },
        "innerBlocks": [
          {
            "name": "core/heading",
            "attributes": {
              "level": 3,
              "content": "Feature 1"
            }
          }
        ]
      },
      {
        "name": "core/group",
        "attributes": {
          "style": {
            "spacing": {
              "padding": "1rem"
            },
            "border": {
              "width": "1px",
              "style": "solid"
            }
          }
        },
        "innerBlocks": [
          {
            "name": "core/heading",
            "attributes": {
              "level": 3,
              "content": "Feature 2"
            }
          }
        ]
      },
      {
        "name": "core/group",
        "attributes": {
          "style": {
            "spacing": {
              "padding": "1rem"
            },
            "border": {
              "width": "1px",
              "style": "solid"
            }
          }
        },
        "innerBlocks": [
          {
            "name": "core/heading",
            "attributes": {
              "level": 3,
              "content": "Feature 3"
            }
          }
        ]
      }
    ]
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js"
}