---
title: Textarea
description: JSON Schema for the Textarea component.
---

Multi-line text input component.

```json
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Textarea",
      "default": "Textarea",
      "type": "string"
    },
    "id": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "HTML id attribute for CSS targeting. Applied to the outermost element."
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling. Accepts a Responsive() for breakpoint-aware classes."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "State key for reactive binding. Auto-generated if omitted."
    },
    "placeholder": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Placeholder text"
    },
    "value": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Textarea value"
    },
    "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"
  ]
}
```
