[object Promise]

# ChatLayout API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Chat - Layout](/x/react-chat/basics/layout/)
- [Chat - Headless composition](/x/react-chat/headless/composition/)

## Import

```jsx
import { ChatLayout } from '@mui/x-chat/headless';
```

> **Note**: The `ref` is forwarded to the root element.

> Any other props supplied will be provided to the root element (native element).

## Slots

| Name | Default | Class | Description |
|------|---------|-------|-------------|
| root | `'div'` | - | The component that renders the root. |
| conversationsPane | `'div'` | - | The component that renders the conversations pane. |
| threadPane | `'div'` | - | The component that renders the thread pane. |

## Source code

If you did not find the information on this page, consider having a look at the implementation of the component for more detail.

- [/packages/x-chat-headless/src/chat/ChatLayout.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-chat-headless/src/chat/ChatLayout.tsx)