{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 2,
  "name": "hizzle-forms/select",
  "title": "Select field",
  "description": "A select field input for forms.",
  "category": "hizzle-forms",
  "keywords": [
    "form",
    "contact",
    "textarea"
  ],
  "icon": "editor-ul",
  "parent": [
    "hizzle-forms/form"
  ],
  "version": "1.0.0",
  "textdomain": "hizzle-forms",
  "attributes": {
    "label": {
      "type": "string",
      "default": "",
      "source": "html",
      "selector": ".hizzle-forms__field-label"
    },
    "options": {
      "type": "array",
      "default": [
        "Option 1",
        "Option 2"
      ],
      "items": {
        "type": "string"
      }
    },
    "value": {
      "type": "string",
      "default": "Option 1"
    },
    "placeholder": {
      "type": "string",
      "default": "Select an option"
    },
    "validation": {
      "type": "array"
    },
    "help": {
      "type": "string",
      "default": "",
      "source": "html",
      "selector": ".hizzle-forms__field-help-text"
    },
    "instanceID": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  },
  "example": {
    "attributes": {
      "label": "Select",
      "placeholder": "Select an option",
      "options": [
        "Option 1",
        "Option 2"
      ],
      "validation": [
        {
          "name": "required"
        }
      ],
      "help": "This is a help text.",
      "value": "Option 1"
    }
  },
  "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"
}