{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "modern-fields/textarea",
  "version": "1.0",
  "title": "Textarea",
  "category": "mf-input-fields",
  "description": "A textarea field for longer text input.",
  "attributes": {
    "defaultValue": {
      "type": "string",
      "default": ""
    },
    "placeholder": {
      "type": "string",
      "default": ""
    },
    "rows": {
      "type": "number",
      "default": 4
    },
    "maxLength": {
      "type": "number",
      "default": null
    },
    "mfMeta": {
      "type": "object",
      "default": {
        "sanitizeCallback": "sanitize_textarea_field"
      }
    }
  },
  "example": {
    "attributes": {
      "label": "Textarea",
      "defaultValue": "A long, long text…",
      "rows": 3,
      "maxLength": 100,
      "description": "A textarea field for longer text input."
    },
    "viewportWidth": 300
  },
  "textdomain": "modern-fields",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css"
}