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

# <AttioRecordCombobox />

> A combobox input for selecting Attio records.

<img className="dark:hidden" width="720" height="440" noZoom src="https://mintcdn.com/attio/6iYi7YnGZIZchWq2/images/attio-record-combobox.png?fit=max&auto=format&n=6iYi7YnGZIZchWq2&q=85&s=1e971d884000d4c90259ed3c82eec9dc" data-path="images/attio-record-combobox.png" />

<img className="hidden dark:block" width="720" height="440" noZoom src="https://mintcdn.com/attio/6iYi7YnGZIZchWq2/images/attio-record-combobox-dark.png?fit=max&auto=format&n=6iYi7YnGZIZchWq2&q=85&s=968f71fd823a1e82f6f7e9fd4486f816" data-path="images/attio-record-combobox-dark.png" />

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

## Example

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

export function RecordForm() {
  const {Form, SubmitButton, AttioRecordCombobox} = useForm(
    {
      person: Forms.attioRecord().object({slug: "people"}),
      company: Forms.attioRecord().object({slug: "companies"}),
      record: Forms.attioRecord(),
    },
    {},
  )
  return (
    <Form
      onSubmit={async (values) => {
        await showToast({
          title: "Form submitted",
          variant: "success",
          text: `Selected person: ${values.person?.recordId} (${values.person?.object}), company: ${values.company?.recordId} (${values.company?.object}), record: ${values.record?.recordId} (${values.record?.object})`,
        })
      }}
    >
      <AttioRecordCombobox label="Person" name="person" object="people" />
      <AttioRecordCombobox label="Company" name="company" object="companies" />
      <AttioRecordCombobox label="Record" name="record" />
      <SubmitButton label="Submit" />
    </Form>
  )
}
```

## Props

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

<ParamField path="name" type="string" required>
  The path to the `attioRecord` value of the input field in your [form
  schema](../../forms/form-schema). e.g. `"company"`, `"appointment.contact_person"`
</ParamField>

<ParamField path="object" type="ObjectSlug | Array<ObjectSlug>">
  Specifies which type(s) of records to load in the combobox, including custom objects.

  Defaults to `["companies", "people", "deals", "users"]`.
</ParamField>

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

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