[
  {
    "name": "label",
    "type": "string",
    "required": true,
    "description": "The label for the textarea field."
  },
  {
    "name": "headingLevel",
    "type": "number",
    "required": false,
    "description": "The heading level which represents an element from `<h1>` through to `<h6>`. Leave blank or set to `0` to use a plain `<label>` element with no heading."
  },
  {
    "name": "headingSize",
    "type": "string",
    "required": false,
    "description": "The physical size of the textarea title (`xl`, `l`, `m`, `s` or `xs`).",
    "default": "m"
  },
  {
    "name": "id",
    "type": "string",
    "required": true,
    "description": "A unique ID for the textarea component."
  },
  {
    "name": "name",
    "type": "string",
    "required": true,
    "description": "The name of the form field."
  },
  {
    "name": "hint",
    "type": "string",
    "required": false,
    "description": "An optional hint to display above the form field."
  },
  {
    "name": "value",
    "type": "string",
    "required": false,
    "description": "The form field value."
  },
  {
    "name": "error",
    "type": "object",
    "required": false,
    "description": "If set, the details of any errors.",
    "params": [
      {
        "name": "text",
        "type": "string",
        "required": true,
        "description": "The error text to display."
      }
    ]
  },
  {
    "name": "spellcheck",
    "type": "boolean",
    "required": false,
    "description": "If `true`, enable [spellcheck](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/spellcheck) for the text input.",
    "default": false
  },
  {
    "name": "autocapitalize",
    "type": "string",
    "required": false,
    "description": "If `true`, enable [automatic capitalization](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/autocapitalize) for the text input. This is not supported in all browsers.",
    "default": "off"
  },
  {
    "name": "autocorrect",
    "type": "boolean",
    "required": false,
    "description": "If `true`, enable [autocorrect](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/autocorrect) for the text input. This is not supported in all browsers.",
    "default": false
  },
  {
    "name": "size",
    "type": "string",
    "required": false,
    "description": "Set the width of the textarea. Can be `m`, `l` or `xl`."
  },
  {
    "name": "rows",
    "type": "number",
    "required": false,
    "description": "Set the number of visible text lines for the textarea. A scrollbar will appear if the content exceeds the height.",
    "default": 5
  },
  {
    "name": "itemiseRows",
    "type": "boolean",
    "required": false,
    "description": "If `true`, when JavaScript is available, parse each row of the textarea content into a list of items.",
    "default": false
  },
  {
    "name": "formItemClasses",
    "type": "string",
    "required": false,
    "description": "Classes to add to the textarea form group."
  },
  {
    "name": "formItemAttributes",
    "type": "object",
    "required": false,
    "description": "HTML attributes (for example data attributes) to add to the textarea form group."
  },
  {
    "name": "classes",
    "type": "string",
    "required": false,
    "description": "Classes to add to the textarea."
  },
  {
    "name": "attributes",
    "type": "object",
    "required": false,
    "description": "HTML attributes (for example data attributes) to add to the textarea."
  }
]
