{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 2,
  "name": "hizzle-forms/input",
  "title": "Input field",
  "description": "A text input field for forms.",
  "category": "hizzle-forms",
  "keywords": [
    "form",
    "contact",
    "input"
  ],
  "icon": "editor-textcolor",
  "parent": [
    "hizzle-forms/form"
  ],
  "version": "1.0.0",
  "textdomain": "hizzle-forms",
  "attributes": {
    "label": {
      "type": "string",
      "default": "",
      "source": "html",
      "selector": ".hizzle-forms__field-label"
    },
    "placeholder": {
      "type": "string",
      "default": "",
      "source": "attribute",
      "selector": "input",
      "attribute": "placeholder"
    },
    "validation": {
      "type": "array"
    },
    "help": {
      "type": "string",
      "default": "",
      "source": "html",
      "selector": ".hizzle-forms__field-help-text"
    },
    "instanceID": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "default": "text"
    },
    "value": {
      "type": "string",
      "default": "",
      "source": "attribute",
      "selector": "input",
      "attribute": "value"
    }
  },
  "example": {
    "attributes": {
      "label": "Label",
      "placeholder": "Placeholder",
      "validation": [
        {
          "name": "required"
        }
      ],
      "help": "Help text",
      "pattern": "[0-9]+",
      "type": "number",
      "value": "123"
    }
  },
  "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"
}