{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "formello/textarea",
  "title": "Textarea",
  "ancestor": [
    "formello/form"
  ],
  "usesContext": [
    "formello/requiredText"
  ],
  "description": "Textarea field.",
  "category": "formello",
  "textdomain": "formello",
  "attributes": {
    "id": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "id"
    },
    "name": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "name"
    },
    "label": {
      "type": "string",
      "source": "html",
      "selector": "label span:not(.required)",
      "default": "My textarea"
    },
    "hideLabel": {
      "type": "boolean",
      "selector": "label.hide",
      "default": false
    },
    "placeholder": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "placeholder",
      "default": ""
    },
    "value": {
      "type": "string",
      "source": "text",
      "selector": "textarea",
      "default": ""
    },
    "validation": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "data-bouncer-message",
      "default": ""
    },
    "enableMismatch": {
      "type": "boolean",
      "default": false
    },
    "mismatchMessage": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "data-bouncer-mismatch-message",
      "default": ""
    },
    "match": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "data-bouncer-match",
      "default": ""
    },
    "required": {
      "type": "boolean",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "required",
      "default": false
    },
    "autocomplete": {
      "enum": [
        "on",
        "off"
      ],
      "source": "attribute",
      "selector": "textarea",
      "attribute": "autocomplete",
      "default": "off"
    },
    "requiredText": {
      "type": "string",
      "source": "text",
      "selector": "label span.required",
      "default": "*"
    },
    "disabled": {
      "type": "boolean",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "disabled",
      "default": false
    },
    "readonly": {
      "type": "boolean",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "readonly",
      "default": false
    },
    "showHelp": {
      "type": "boolean",
      "default": false
    },
    "help": {
      "type": "string",
      "source": "html",
      "selector": "small",
      "default": ""
    },
    "cols": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "cols"
    },
    "rows": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "rows"
    },
    "minlength": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "minlength"
    },
    "maxlength": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "maxlength"
    },
    "pattern": {
      "type": "string",
      "source": "attribute",
      "selector": "textarea",
      "attribute": "pattern"
    },
    "advanced": {
      "type": "boolean",
      "selector": "textarea.formello-rft"
    }
  },
  "supports": {
    "html": false,
    "inserter": true,
    "reusable": false,
    "color": {
      "background": true,
      "text": true,
      "__experimentalSkipSerialization": true
    },
    "spacing": {
      "padding": true,
      "__experimentalSkipSerialization": true
    },
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true,
      "__experimentalSkipSerialization": true,
      "__experimentalDefaultControls": {
        "color": true,
        "radius": true,
        "style": true,
        "width": true
      }
    }
  },
  "selectors": {
    "root": ".wp-block-formello-textarea",
    "color": {
      "background": ".wp-block-formello-textarea > textarea",
      "text": ".wp-block-formello-textarea"
    },
    "spacing": {
      "root": ".wp-block-formello-textarea",
      "padding": ".wp-block-formello-textarea > textarea"
    },
    "border": {
      "root": ".wp-block-formello-textarea > textarea"
    }
  },
  "editorScript": "file:./index.js",
  "style": "file:./style-index.css",
  "render": "file:./render.php"
}