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

# <Section />

> A section of UI with a title. It can be thought of like a `<div/>` in DOM.

<img className="dark:hidden" width="720" height="440" noZoom src="https://mintcdn.com/attio/2EyaTyByKNPeSVcd/images/section.png?fit=max&auto=format&n=2EyaTyByKNPeSVcd&q=85&s=cca73f07d5fd6693203894630a35e143" data-path="images/section.png" />

<img className="hidden dark:block" width="720" height="440" noZoom src="https://mintcdn.com/attio/2EyaTyByKNPeSVcd/images/section-dark.png?fit=max&auto=format&n=2EyaTyByKNPeSVcd&q=85&s=0f9702bf6b5a55bc8f506c4bf68f414b" data-path="images/section-dark.png" />

```js theme={"system"}
import {Section} from "attio/client"
```

## Example

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

export function FormWithSectionsDialog() {
  const {Form, SubmitButton, TextInput} = useForm(
    {
      firstName: Forms.string(),
      lastName: Forms.string(),
      street: Forms.string(),
      city: Forms.string(),
    },
    {
      firstName: "",
      lastName: "",
      street: "",
      city: "",
    },
  )
  return (
    <Form
      onSubmit={async (values) => {
        await showToast({
          title: "Form submitted",
          variant: "success",
          text: JSON.stringify(values),
        })
      }}
    >
      <Section title="Personal information">
        <TextInput label="First name" name="firstName" />
        <TextInput label="Last name" name="lastName" />
      </Section>
      <Section title="Address">
        <TextInput label="Street" name="street" />
        <TextInput label="City" name="city" />
      </Section>
      <SubmitButton label="Submit" />
    </Form>
  )
}
```

## Props

<ParamField path="title" type="string" required>
  The title of the section. It will be displayed in a stronger font than the content of the section.
</ParamField>

<ParamField path="children" type="React.ReactNode" required>
  The text (or components) content of the section.
</ParamField>
