> ## Documentation Index
> Fetch the complete documentation index at: https://docs.attio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# <TextArea />

> A multi-line text input field for longer string values.

<img className="dark:hidden" width="720" height="440" noZoom src="https://mintcdn.com/attio/eAT4-jNssCNxoyby/images/text-area.png?fit=max&auto=format&n=eAT4-jNssCNxoyby&q=85&s=8efdd1faa1ae1ea75e331dac60b267ff" data-path="images/text-area.png" />

<img className="hidden dark:block" width="720" height="440" noZoom src="https://mintcdn.com/attio/eAT4-jNssCNxoyby/images/text-area-dark.png?fit=max&auto=format&n=eAT4-jNssCNxoyby&q=85&s=b591a70b74cba53a0ccd98817b0e05f5" data-path="images/text-area-dark.png" />

<Note>This component is returned by [`useForm()`](../../forms/use-form).</Note>

Use `<TextArea />` when you need a multi-line string field (e.g. descriptions, notes, or comments). For single-line text, use [`<TextInput />`](./text-input) instead. The component binds to a `string` field in your [form schema](../../forms/form-schema).

## Example

```tsx form-text-area-dialog.tsx theme={"system"}
import React from "react"
import {Forms, useForm, showToast} from "attio/client"

export function FormTextAreaDialog() {
  const {Form, SubmitButton, TextArea, TextInput} = useForm(
    {
      title: Forms.string(),
      description: Forms.string(),
    },
    {
      title: "",
      description: "",
    },
  )
  return (
    <Form
      onSubmit={async (values) => {
        await showToast({
          title: "Form submitted",
          variant: "success",
          text: JSON.stringify(values),
        })
      }}
    >
      <TextInput label="Title" name="title" />
      <TextArea
        label="Description"
        name="description"
        placeholder="Enter a description..."
        resizable
      />
      <SubmitButton label="Submit" />
    </Form>
  )
}
```

## Props

<ParamField path="label" type="string" required>
  The label of the textarea.
</ParamField>

<ParamField path="name" type="string" required>
  The path to the value of the textarea in your [form schema](../../forms/form-schema).

  e.g. `"description"`, `"address.notes"`
</ParamField>

<ParamField path="placeholder" type="string">
  The optional placeholder text of the textarea.
</ParamField>

<ParamField path="resizable" type="boolean">
  Whether the textarea is resizable by the user.

  Defaults to `false`.
</ParamField>

<ParamField path="disabled" type="boolean">
  Whether the textarea is disabled.

  Defaults to `false`.
</ParamField>
