> ## 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.

# <RichTextInput />

> A rich text input field.

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

A rich text input stores its value in a `string` field of your [settings schema](../../settings/define-workspace-schema).

## Example

```tsx src/app/settings/page.tsx theme={"system"}
import React from "react"
import {Settings} from "attio/client"

import schema from "./schema"

export default Settings.defineWorkspacePage(schema, () => {
  const {Form, RichTextInput} = Settings.useForm(schema)

  return (
    <Form>
      <RichTextInput label="Email signature" name="email_signature" maxLength={2000} />
    </Form>
  )
})
```

## Props

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

<ParamField path="name" type="string" required>
  The path to the `string` value of the input field in your [settings
  schema](../../settings/define-workspace-schema).
</ParamField>

<ParamField path="placeholder" type="string">
  An optional placeholder text for your input.
</ParamField>

<ParamField path="minLength" type="number">
  The minimum length (number of characters) required. Validation will fail if the user inputs a
  string shorter than this value.
</ParamField>

<ParamField path="maxLength" type="number">
  The maximum length (number of characters) allowed. Validation will fail if the user inputs a
  string longer than this value.
</ParamField>

<ParamField path="disabled" type="boolean">
  Whether or not the field should be disabled.

  Defaults to `false` (not disabled).
</ParamField>
