{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "formgent/multiple-choice",
  "title": "Multiple Choice",
  "category": "formgent",
  "description": "Add a multiple-choice field to present a list of options.",
  "textdomain": "formgent",
  "attributes": {
    "id": {
      "type": "string",
      "default": ""
    },
    "name": {
      "type": "string",
      "default": "multiple-choice"
    },
    "value": {
      "type": "string",
      "default": ""
    },
    "default_option": {
      "type": "array",
      "default": []
    },
    "options": {
      "type": "array",
      "default": []
    },
    "label": {
      "type": "string",
      "default": "Multi Choice"
    },
    "label_alignment": {
      "type": "string",
      "default": "top"
    },
    "sub_label": {
      "type": "string",
      "default": ""
    },
    "style": {
      "type": "string",
      "default": "frame"
    },
    "layout": {
      "type": "string",
      "default": "default"
    },
    "choice_limit": {
      "type": "boolean",
      "default": false
    },
    "choice_limit_item": {
      "type": "number",
      "default": 2
    },
    "required": {
      "type": "boolean",
      "default": false
    },
    "allow_user_add_other_option": {
      "type": "boolean",
      "default": false
    },
    "block_width": {
      "type": "string",
      "default": "100"
    },
    "logics": {
      "type": "object",
      "default": {}
    },
    "is_preview": {
      "type": "boolean",
      "default": false
    },
    "other_label": {
      "type": "string",
      "default": "Other"
    },
    "other_placeholder": {
      "type": "string",
      "default": "Please specify"
    },
    "correct_answer": {
      "type": "array",
      "default": []
    },
    "points": {
      "type": "number",
      "default": 1
    },
    "enable_numeric_value": {
      "type": "boolean",
      "default": false
    }
  },
  "supports": {
    "interactivity": true
  },
  "editorScript": "file:index.js",
  "style": "file:style-index.css",
  "editorStyle": "file:index.css",
  "render": "file:render.php"
}