Skip to main content
Multi-line text input component.
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Textarea",
      "default": "Textarea",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling"
    },
    "placeholder": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Placeholder text"
    },
    "value": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Textarea value"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Form field name"
    },
    "rows": {
      "type": [
        "integer",
        "null"
      ],
      "default": null,
      "description": "Number of visible text rows"
    },
    "disabled": {
      "default": false,
      "description": "Whether textarea is disabled",
      "type": "boolean"
    },
    "required": {
      "default": false,
      "description": "Whether textarea is required",
      "type": "boolean"
    },
    "minLength": {
      "type": [
        "integer",
        "null"
      ],
      "default": null,
      "description": "Minimum character length"
    },
    "maxLength": {
      "type": [
        "integer",
        "null"
      ],
      "default": null,
      "description": "Maximum character length"
    },
    "onChange": {
      "$ref": "Action",
      "description": "Action(s) to execute when value changes",
      "default": null
    }
  },
  "required": [
    "type"
  ]
}