[
  {
    "name": "id",
    "type": "string",
    "required": false,
    "description": "The ID of the textarea. Defaults to the value of `name`.",
    "released": "7.0.0"
  },
  {
    "name": "name",
    "type": "string",
    "required": true,
    "description": "The name of the textarea, which is submitted with the form data.",
    "released": "7.0.0"
  },
  {
    "name": "rows",
    "type": "string",
    "required": false,
    "description": "Optional number of textarea rows (default is 5 rows).",
    "released": "7.0.0"
  },
  {
    "name": "value",
    "type": "string",
    "required": false,
    "description": "Optional initial value of the textarea.",
    "released": "7.0.0"
  },
  {
    "name": "maxlength",
    "type": "string",
    "required": true,
    "description": "The maximum number of characters (or words if `countType` is set to `\"words\"`).",
    "released": "7.0.0"
  },
  {
    "name": "maxwords",
    "type": "string",
    "required": true,
    "description": "The maximum number of words. Replaced by the `maxlength` and `countType: \"words\"` options.",
    "released": "7.0.0",
    "deprecated": "10.5.0"
  },
  {
    "name": "countType",
    "type": "string",
    "required": false,
    "description": "The count type used to count the text – `\"length\"` or `\"words\"`. Defaults to `\"length\"`.",
    "released": "10.5.0"
  },
  {
    "name": "threshold",
    "type": "string",
    "required": false,
    "description": "The percentage value of the limit at which point the count message is displayed. If this attribute is set, the count message will be hidden by default.",
    "released": "7.0.0"
  },
  {
    "name": "label",
    "type": "object",
    "required": true,
    "description": "The label used by the character count component.",
    "released": "7.0.0",
    "isComponent": true
  },
  {
    "name": "hint",
    "type": "object",
    "required": false,
    "description": "Can be used to add a hint to the character count component.",
    "released": "7.0.0",
    "isComponent": true
  },
  {
    "name": "errorMessage",
    "type": "object",
    "required": false,
    "description": "Can be used to add an error message to the character count component. The error message component will not display if you use a falsy value for `errorMessage`, for example `false` or `null`.",
    "released": "7.0.0",
    "isComponent": true
  },
  {
    "name": "formGroup",
    "type": "object",
    "required": false,
    "description": "Additional options for the form group containing the character count component.",
    "released": "7.0.0",
    "params": [
      {
        "name": "classes",
        "type": "string",
        "required": false,
        "description": "Classes to add to the form group (for example to show error state for the whole group).",
        "released": "10.1.0"
      },
      {
        "name": "attributes",
        "type": "object",
        "required": false,
        "description": "HTML attributes (for example data attributes) to add to the form group.",
        "released": "10.1.0"
      },
      {
        "name": "beforeInput",
        "type": "object",
        "required": false,
        "description": "Content to add before the textarea used by the character count component.",
        "released": "10.1.0",
        "params": [
          {
            "name": "text",
            "type": "string",
            "required": true,
            "description": "Text to add before the textarea. If `html` is provided, the `text` option will be ignored.",
            "released": "10.1.0"
          },
          {
            "name": "html",
            "type": "string",
            "required": true,
            "description": "HTML to add before the textarea. If `html` is provided, the `text` option will be ignored.",
            "released": "10.1.0"
          }
        ]
      },
      {
        "name": "afterInput",
        "type": "object",
        "required": false,
        "description": "Content to add after the textarea used by the character count component.",
        "released": "10.1.0",
        "params": [
          {
            "name": "text",
            "type": "string",
            "required": true,
            "description": "Text to add after the textarea. If `html` is provided, the `text` option will be ignored.",
            "released": "10.1.0"
          },
          {
            "name": "html",
            "type": "string",
            "required": true,
            "description": "HTML to add after the textarea. If `html` is provided, the `text` option will be ignored.",
            "released": "10.1.0"
          }
        ]
      }
    ]
  },
  {
    "name": "classes",
    "type": "string",
    "required": false,
    "description": "Classes to add to the textarea.",
    "released": "7.0.0"
  },
  {
    "name": "attributes",
    "type": "object",
    "required": false,
    "description": "HTML attributes (for example data attributes) to add to the textarea.",
    "released": "7.0.0"
  },
  {
    "name": "spellcheck",
    "type": "boolean",
    "required": false,
    "description": "Optional field to enable or disable the `spellcheck` attribute on the character count.",
    "released": "7.0.0"
  },
  {
    "name": "disabled",
    "type": "boolean",
    "required": false,
    "description": "If `true`, textarea will be disabled.",
    "released": "10.5.0"
  },
  {
    "name": "autocomplete",
    "type": "string",
    "required": false,
    "description": "Attribute to meet [WCAG success criterion 1.3.5: Identify input purpose](https://www.w3.org/WAI/WCAG22/Understanding/identify-input-purpose.html), for instance `\"street-address\"`. See the [Autofill section in the HTML standard](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill) for a full list of attributes that can be used.",
    "released": "10.5.0"
  },
  {
    "name": "countMessage",
    "type": "object",
    "required": false,
    "description": "Additional options for the count message used by the character count component.",
    "released": "7.0.0",
    "params": [
      {
        "name": "classes",
        "type": "string",
        "required": false,
        "description": "Classes to add to the count message.",
        "released": "7.0.0"
      }
    ]
  },
  {
    "name": "textareaDescriptionText",
    "type": "string",
    "required": false,
    "description": "Message made available to assistive technologies to describe that the component accepts only a limited amount of content. It is visible on the page if `countType` is not supported or JavaScript is unavailable. The component will replace the `%{count}` placeholder with the value of the `maxlength` parameter.",
    "released": "10.1.0"
  }
]
