ChatComposerAttachButton API
API reference docs for the React ChatComposerAttachButton component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { ChatComposerAttachButton } from '@mui/x-chat/ChatComposer';
// or
import { ChatComposerAttachButton } from '@mui/x-chat';Learn about the difference by reading this guide on minimizing bundle size.
| Name | Type | Description |
|---|---|---|
| classes | Partial | See CSS classes API below for more details. |
| slotProps | ComposerAttachButtonSlotProps | |
| slots | Partial | See Slots API below for more details. |
The component cannot hold a ref.
| Slot name | Class name | Default component | Description |
|---|---|---|---|
| attachButton | |||
| attachInput |
Source code
If you did not find the information in this page, consider having a look at the implementation of the component for more detail.