{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "modern-fields/checkboxes",
  "version": "1.0",
  "title": "Checkboxes",
  "category": "mf-select-fields",
  "description": "A checkboxes field for multiple boolean input.",
  "attributes": {
    "defaultValue": {
      "type": "array",
      "default": []
    },
    "options": {
      "type": "array",
      "default": [
        {
          "label": "Option 1",
          "value": "option-1",
          "checked": true
        }
      ]
    },
    "layout": {
      "type": "string",
      "default": "vertical"
    },
    "mfMeta": {
      "type": "object",
      "default": {
        "schema": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string"
            },
            "value": {
              "type": "string"
            },
            "checked": {
              "type": "boolean"
            }
          }
        }
      }
    }
  },
  "example": {
    "attributes": {
      "label": "Checkboxes",
      "options": [
        {
          "label": "Option 1",
          "value": "option-1",
          "checked": true
        },
        {
          "label": "Option 2",
          "value": "option-2",
          "checked": false
        },
        {
          "label": "Option 3",
          "value": "option-3",
          "checked": false
        }
      ],
      "description": "A checkboxes field for multiple boolean input."
    },
    "viewportWidth": 300
  },
  "textdomain": "modern-fields",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css"
}