{
  "name": "textarea",
  "componentName": "Textarea",
  "displayName": "Textarea",
  "regions": [],
  "functions": [
    {
      "name": "focus",
      "description": "Sets input focus on the textarea control.",
      "returnType": "void",
      "parameters": []
    }
  ],
  "properties": [
    {
      "name": "ariaDescribedby",
      "type": "string",
      "optional": true,
      "description": "Adds `aria-describedby` to the component. If you're using this component within a form field,\ndon't set this property because the form field component automatically sets it.\n\nUse this property if the component isn't surrounded by a form field, or you want to override the value\nautomatically set by the form field (for example, if you have two components within a single form field).\n\nTo use it correctly, define an ID for each element that you want to use as a description\nand set the property to a string of each ID separated by spaces (for example, `\"id1 id2 id3\"`).",
      "formattedType": "string"
    },
    {
      "name": "ariaLabel",
      "type": "string",
      "optional": true,
      "description": "Adds an `aria-label` to the native control.\n\nUse this if you don't have a visible label for this control.",
      "formattedType": "string"
    },
    {
      "name": "ariaLabelledby",
      "type": "string",
      "optional": true,
      "description": "Adds `aria-labelledby` to the component. If you're using this component within a form field,\ndon't set this property because the form field component automatically sets it.\n\nUse this property if the component isn't surrounded by a form field, or you want to override the value\nautomatically set by the form field (for example, if you have two components within a single form field).\n\nTo use it correctly, define an ID for the element you want to use as label and set the property to that ID.",
      "formattedType": "string"
    },
    {
      "name": "ariaRequired",
      "type": "boolean",
      "optional": true,
      "description": "Specifies whether to add `aria-required` to the native control.",
      "formattedType": "boolean"
    },
    {
      "name": "autoComplete",
      "type": "string | boolean",
      "inlineType": {
        "name": "string | boolean",
        "type": "union",
        "values": [
          "string",
          "false",
          "true"
        ]
      },
      "optional": true,
      "description": "Specifies whether to enable a browser's autocomplete functionality for this input.\nIn some cases it might be appropriate to disable autocomplete (for example, for security-sensitive fields).\nTo use it correctly, set the `name` property.\n\nYou can either provide a boolean value to set the property to \"on\" or \"off\", or specify a string value\nfor the [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute.",
      "defaultValue": "true",
      "formattedType": "string | boolean"
    },
    {
      "name": "autoFocus",
      "type": "boolean",
      "optional": true,
      "description": "Indicates whether the control should be focused as\nsoon as the page loads, which enables the user to\nstart typing without having to manually focus the control. Don't\nuse this option on pages where the control may be\nscrolled out of the viewport.",
      "formattedType": "boolean"
    },
    {
      "name": "controlId",
      "type": "string",
      "optional": true,
      "description": "Specifies the ID of the native form element. You can use it to relate\na label element's `for` attribute to this control.\n\nIt defaults to an automatically generated ID that\nis provided by its parent form field component.",
      "formattedType": "string"
    },
    {
      "name": "disableBrowserAutocorrect",
      "type": "boolean",
      "optional": true,
      "description": "Specifies whether to disable browser autocorrect and related features.\nIf you set this to `true`, it disables any native browser capabilities\nthat automatically correct user input, such as `autocorrect` and\n`autocapitalize`. If you don't set it, the behavior follows the default behavior\nof the user's browser.",
      "formattedType": "boolean"
    },
    {
      "name": "disabled",
      "type": "boolean",
      "optional": true,
      "description": "Specifies if the control is disabled, which prevents the\nuser from modifying the value and prevents the value from\nbeing included in a form submission. A disabled control can't\nreceive focus.",
      "formattedType": "boolean"
    },
    {
      "name": "invalid",
      "type": "boolean",
      "optional": true,
      "description": "Overrides the invalidation state. Usually the invalid state\ncomes from the parent `FormField`component,\nhowever sometimes you need to override its\nstate when you have more than one input within a\nsingle form field.",
      "formattedType": "boolean"
    },
    {
      "name": "name",
      "type": "string",
      "optional": true,
      "description": "Specifies the name of the control used in HTML forms.",
      "formattedType": "string"
    },
    {
      "name": "nativeTextareaAttributes",
      "type": "NativeAttributes<React.TextareaHTMLAttributes<HTMLTextAreaElement>>",
      "inlineType": {
        "name": "NativeAttributes<React.TextareaHTMLAttributes<HTMLTextAreaElement>>",
        "type": "union",
        "values": [
          "Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, \"children\">",
          "Record<`data-${string}`, string>",
          "{ readonly ref?: React.Ref<HTMLTextAreaElement> | undefined; }"
        ]
      },
      "optional": true,
      "description": "Attributes to add to the native `textarea` element.\nSome attributes will be automatically combined with internal attribute values:\n- `className` will be appended.\n- Event handlers will be chained, unless the default is prevented.\n\nWe do not support using this attribute to apply custom styling.\n\nPass a `ref` to access the native element for measurement, observation, or third-party integration.\nFor actions such as focus or selection, use the component's explicit ref methods;\noperations performed directly on the native element may bypass the built-in component's behaviors.",
      "systemTags": [
        "core"
      ],
      "formattedType": "NativeAttributes<React.TextareaHTMLAttributes<HTMLTextAreaElement>>"
    },
    {
      "name": "placeholder",
      "type": "string",
      "optional": true,
      "description": "Specifies the placeholder text rendered when the value is an empty string.",
      "formattedType": "string"
    },
    {
      "name": "readOnly",
      "type": "boolean",
      "optional": true,
      "description": "Specifies if the control is read-only, which prevents the\nuser from modifying the value but includes it in a form\nsubmission. A read-only control can receive focus.\n\nDon't use read-only inputs outside a form.",
      "formattedType": "boolean"
    },
    {
      "name": "resize",
      "type": "string",
      "inlineType": {
        "name": "TextareaProps.Resize",
        "type": "union",
        "values": [
          "none",
          "both",
          "horizontal",
          "vertical"
        ]
      },
      "optional": true,
      "description": "Specifies the directions in which the user can resize the textarea:\n\n* `both` (default) - The user can change both the width and the height.\n* `vertical` - The user can only change the height. Use this when the textarea\n  is next to other content that a width change would disrupt.\n* `horizontal` - The user can only change the width.\n* `none` - The user can't resize the textarea. Longer content scrolls instead.\n  Consider using the `rows` property to make the initial height fit the expected content.",
      "defaultValue": "'both'",
      "formattedType": "string"
    },
    {
      "name": "rows",
      "type": "number",
      "optional": true,
      "description": "Specifies the number of lines of text to set the height to.",
      "formattedType": "number"
    },
    {
      "name": "spellcheck",
      "type": "boolean",
      "optional": true,
      "description": "Specifies the value of the `spellcheck` attribute on the native control.\nThis value controls the native browser capability to check for spelling/grammar errors.\nIf not set, the browser default behavior is to perform spellchecking.\nFor more details, check the [spellcheck MDN article](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck).\n\nEnhanced spellchecking features of your browser and/or operating system may send input values to external parties.\nMake sure it’s deactivated for fields with sensitive information to prevent\ninadvertently sending data (such as user passwords) to third parties.",
      "formattedType": "boolean"
    },
    {
      "name": "style",
      "type": "TextareaProps.Style",
      "inlineType": {
        "name": "TextareaProps.Style",
        "type": "object",
        "properties": [
          {
            "name": "placeholder",
            "optional": true,
            "type": "{ color?: string | undefined; fontSize?: string | undefined; fontStyle?: string | undefined; fontWeight?: string | undefined; }",
            "inlineType": {
              "name": "object",
              "type": "object",
              "properties": [
                {
                  "name": "color",
                  "optional": true,
                  "type": "string"
                },
                {
                  "name": "fontSize",
                  "optional": true,
                  "type": "string"
                },
                {
                  "name": "fontStyle",
                  "optional": true,
                  "type": "string"
                },
                {
                  "name": "fontWeight",
                  "optional": true,
                  "type": "string"
                }
              ]
            }
          },
          {
            "name": "root",
            "optional": true,
            "type": "{ backgroundColor?: { default?: string | undefined; disabled?: string | undefined; focus?: string | undefined; hover?: string | undefined; readonly?: string | undefined; } | undefined; ... 8 more ...; paddingInline?: string | undefined; }",
            "inlineType": {
              "name": "object",
              "type": "object",
              "properties": [
                {
                  "name": "backgroundColor",
                  "optional": true,
                  "type": "{ default?: string | undefined; disabled?: string | undefined; focus?: string | undefined; hover?: string | undefined; readonly?: string | undefined; }",
                  "inlineType": {
                    "name": "object",
                    "type": "object",
                    "properties": [
                      {
                        "name": "default",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "disabled",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "focus",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "hover",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "readonly",
                        "optional": true,
                        "type": "string"
                      }
                    ]
                  }
                },
                {
                  "name": "borderColor",
                  "optional": true,
                  "type": "{ default?: string | undefined; disabled?: string | undefined; focus?: string | undefined; hover?: string | undefined; readonly?: string | undefined; }",
                  "inlineType": {
                    "name": "object",
                    "type": "object",
                    "properties": [
                      {
                        "name": "default",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "disabled",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "focus",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "hover",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "readonly",
                        "optional": true,
                        "type": "string"
                      }
                    ]
                  }
                },
                {
                  "name": "borderRadius",
                  "optional": true,
                  "type": "string"
                },
                {
                  "name": "borderWidth",
                  "optional": true,
                  "type": "string"
                },
                {
                  "name": "boxShadow",
                  "optional": true,
                  "type": "{ default?: string | undefined; disabled?: string | undefined; focus?: string | undefined; hover?: string | undefined; readonly?: string | undefined; }",
                  "inlineType": {
                    "name": "object",
                    "type": "object",
                    "properties": [
                      {
                        "name": "default",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "disabled",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "focus",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "hover",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "readonly",
                        "optional": true,
                        "type": "string"
                      }
                    ]
                  }
                },
                {
                  "name": "color",
                  "optional": true,
                  "type": "{ default?: string | undefined; disabled?: string | undefined; focus?: string | undefined; hover?: string | undefined; readonly?: string | undefined; }",
                  "inlineType": {
                    "name": "object",
                    "type": "object",
                    "properties": [
                      {
                        "name": "default",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "disabled",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "focus",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "hover",
                        "optional": true,
                        "type": "string"
                      },
                      {
                        "name": "readonly",
                        "optional": true,
                        "type": "string"
                      }
                    ]
                  }
                },
                {
                  "name": "fontSize",
                  "optional": true,
                  "type": "string"
                },
                {
                  "name": "fontWeight",
                  "optional": true,
                  "type": "string"
                },
                {
                  "name": "paddingBlock",
                  "optional": true,
                  "type": "string"
                },
                {
                  "name": "paddingInline",
                  "optional": true,
                  "type": "string"
                }
              ]
            }
          }
        ]
      },
      "optional": true,
      "description": "An object containing CSS properties to customize the textarea's visual appearance.\nRefer to the [style](/components/textarea/?tabId=style) tab for more details.",
      "systemTags": [
        "core"
      ],
      "formattedType": "Object"
    },
    {
      "name": "value",
      "type": "string",
      "optional": false,
      "description": "Specifies the text entered into the form element.",
      "formattedType": "string"
    },
    {
      "name": "warning",
      "type": "boolean",
      "optional": true,
      "description": "Overrides the warning state. Usually the warning state\ncomes from the parent `FormField`component,\nhowever sometimes you need to override its\nstate when you have more than one input within a\nsingle form field.\nWhen you use it, provide additional context with\ninformation on the input state, and associate it\nwith the input using `ariaDescribedby`.",
      "formattedType": "boolean"
    }
  ],
  "events": [
    {
      "name": "onBlur",
      "description": "Called when input focus is removed from the UI control.",
      "cancelable": false
    },
    {
      "name": "onChange",
      "description": "Called whenever a user changes the input value (by typing or pasting).\nThe event `detail` contains the current value of the field.",
      "cancelable": false,
      "detailType": "BaseChangeDetail",
      "detailInlineType": {
        "name": "BaseChangeDetail",
        "type": "object",
        "properties": [
          {
            "name": "value",
            "optional": false,
            "type": "string"
          }
        ]
      },
      "formattedDetailType": "BaseChangeDetail {\n  value: string\n}"
    },
    {
      "name": "onFocus",
      "description": "Called when input focus is moved to the UI control.",
      "cancelable": false
    },
    {
      "name": "onKeyDown",
      "description": "Called when the underlying native textarea emits a `keydown` event.\nThe event `detail` contains the `keyCode` and information\nabout modifiers (that is, CTRL, ALT, SHIFT, META, etc.).",
      "cancelable": true,
      "detailType": "BaseKeyDetail",
      "detailInlineType": {
        "name": "BaseKeyDetail",
        "type": "object",
        "properties": [
          {
            "name": "altKey",
            "optional": false,
            "type": "boolean"
          },
          {
            "name": "ctrlKey",
            "optional": false,
            "type": "boolean"
          },
          {
            "name": "isComposing",
            "optional": false,
            "type": "boolean"
          },
          {
            "name": "key",
            "optional": false,
            "type": "string"
          },
          {
            "name": "keyCode",
            "optional": false,
            "type": "number"
          },
          {
            "name": "metaKey",
            "optional": false,
            "type": "boolean"
          },
          {
            "name": "shiftKey",
            "optional": false,
            "type": "boolean"
          }
        ]
      },
      "formattedDetailType": "BaseKeyDetail {\n  altKey: boolean\n  ctrlKey: boolean\n  isComposing: boolean\n  key: string\n  keyCode: number\n  metaKey: boolean\n  shiftKey: boolean\n}"
    },
    {
      "name": "onKeyUp",
      "description": "Called when the underlying native textarea emits a `keyup` event.\nThe event `detail` contains the `keyCode` and information\nabout modifiers (that is, CTRL, ALT, SHIFT, META, etc.).",
      "cancelable": true,
      "detailType": "BaseKeyDetail",
      "detailInlineType": {
        "name": "BaseKeyDetail",
        "type": "object",
        "properties": [
          {
            "name": "altKey",
            "optional": false,
            "type": "boolean"
          },
          {
            "name": "ctrlKey",
            "optional": false,
            "type": "boolean"
          },
          {
            "name": "isComposing",
            "optional": false,
            "type": "boolean"
          },
          {
            "name": "key",
            "optional": false,
            "type": "string"
          },
          {
            "name": "keyCode",
            "optional": false,
            "type": "number"
          },
          {
            "name": "metaKey",
            "optional": false,
            "type": "boolean"
          },
          {
            "name": "shiftKey",
            "optional": false,
            "type": "boolean"
          }
        ]
      },
      "formattedDetailType": "BaseKeyDetail {\n  altKey: boolean\n  ctrlKey: boolean\n  isComposing: boolean\n  key: string\n  keyCode: number\n  metaKey: boolean\n  shiftKey: boolean\n}"
    }
  ],
  "path": "/components/textarea"
}