{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 2,
  "name": "hizzle-forms/radio",
  "title": "Radio field",
  "description": "A radio field input for forms.",
  "category": "hizzle-forms",
  "keywords": [
    "form",
    "contact",
    "radio",
    "multi-checkbox"
  ],
  "icon": "editor-justify",
  "parent": [
    "hizzle-forms/form"
  ],
  "version": "1.0.0",
  "textdomain": "hizzle-forms",
  "attributes": {
    "label": {
      "type": "string",
      "default": "",
      "source": "html",
      "selector": ".hizzle-forms__field-label"
    },
    "help": {
      "type": "string",
      "default": "",
      "source": "html",
      "selector": ".hizzle-forms__field-help-text"
    },
    "instanceID": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "validation": {
      "type": "array"
    },
    "isRadio": {
      "type": "boolean",
      "default": true
    }
  },
  "example": {
    "attributes": {
      "label": "Radio field",
      "validation": [
        {
          "name": "required"
        }
      ],
      "help": "This is a radio field.",
      "isRadio": true
    },
    "innerBlocks": [
      {
        "name": "hizzle-forms/radio-option",
        "attributes": {
          "option": "First Option",
          "selected": true
        }
      },
      {
        "name": "hizzle-forms/radio-option",
        "attributes": {
          "option": "Second Option"
        }
      },
      {
        "name": "hizzle-forms/radio-option",
        "attributes": {
          "option": "Third Option"
        }
      }
    ]
  },
  "styles": [
    {
      "name": "hizzle-1-6",
      "label": "1/6"
    },
    {
      "name": "hizzle-2-6",
      "label": "2-6"
    },
    {
      "name": "hizzle-3-6",
      "label": "3-6"
    },
    {
      "name": "hizzle-4-6",
      "label": "4-6"
    },
    {
      "name": "hizzle-5-6",
      "label": "5/6"
    },
    {
      "name": "hizzle-full",
      "label": "Full Width",
      "isDefault": true
    }
  ],
  "supports": {
    "anchor": true,
    "spacing": {
      "margin": true,
      "padding": true
    },
    "reusable": false
  },
  "editorScript": "file:./index.js"
}