{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "pluximo-form-blocks/select",
  "version": "1.1.0",
  "title": "Select Field",
  "category": "widgets",
  "icon": "editor-ul",
  "description": "A dropdown field supporting single and multiple selections.",
  "keywords": [
    "select",
    "dropdown",
    "choice",
    "form",
    "field"
  ],
  "attributes": {
    "label": {
      "type": "string",
      "default": "Select an option"
    },
    "helpText": {
      "type": "string",
      "default": ""
    },
    "required": {
      "type": "boolean",
      "default": false
    },
    "fieldId": {
      "type": "string",
      "default": ""
    },
    "options": {
      "type": "array",
      "default": [
        {
          "label": "Option 1",
          "value": "option-1"
        },
        {
          "label": "Option 2",
          "value": "option-2"
        },
        {
          "label": "Option 3",
          "value": "option-3"
        }
      ]
    },
    "multiSelect": {
      "type": "boolean",
      "default": false
    },
    "placeholder": {
      "type": "string",
      "default": "Choose..."
    }
  },
  "example": {
    "attributes": {
      "label": "Pick a state",
      "options": [
        {
          "label": "California",
          "value": "ca"
        },
        {
          "label": "New York",
          "value": "ny"
        },
        {
          "label": "Texas",
          "value": "tx"
        }
      ],
      "required": true
    }
  },
  "parent": [
    "pluximo-form-blocks/wrapper"
  ],
  "supports": {
    "html": false,
    "anchor": true,
    "className": true,
    "customClassName": true,
    "spacing": {
      "margin": true,
      "padding": true
    }
  },
  "textdomain": "pluximo-form-blocks",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js"
}