{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "formgent/dropdown",
  "title": "Dropdown",
  "category": "formgent",
  "description": "Add a dropdown field to allow users to select one option from a list.",
  "textdomain": "formgent",
  "attributes": {
    "id": {
      "type": "string",
      "default": ""
    },
    "name": {
      "type": "string",
      "default": "dropdown"
    },
    "value": {
      "type": "string",
      "default": ""
    },
    "options": {
      "type": "array",
      "default": []
    },
    "default_option": {
      "type": "string",
      "default": ""
    },
    "label": {
      "type": "string",
      "default": "Dropdown"
    },
    "label_alignment": {
      "type": "string",
      "default": "top"
    },
    "sub_label": {
      "type": "string",
      "default": ""
    },
    "required": {
      "type": "boolean",
      "default": false
    },
    "block_width": {
      "type": "string",
      "default": "100"
    },
    "logics": {
      "type": "object",
      "default": {}
    },
    "placeholder": {
      "type": "string",
      "default": "Select an option..."
    },
    "is_preview": {
      "type": "boolean",
      "default": false
    },
    "correct_answer": {
      "type": "string",
      "default": ""
    },
    "points": {
      "type": "number",
      "default": 1
    },
    "enable_numeric_value": {
      "type": "boolean",
      "default": false
    },
    "disable_search": {
      "type": "boolean",
      "default": false
    }
  },
  "supports": {
    "interactivity": true
  },
  "editorScript": "file:index.js",
  "style": "file:style-index.css",
  "editorStyle": "file:index.css",
  "render": "file:render.php"
}