# AttachButton

`AttachButton` renders the attachment trigger in `MessageComposer`.

Internally it toggles the attachment picker and can focus the input when closing a selected picker.

## Props

| Prop                      | Description                                 | Type                                                      |
| ------------------------- | ------------------------------------------- | --------------------------------------------------------- |
| `disabled`                | Disables the attach button.                 | `boolean`                                                 |
| `handleOnPress`           | Custom press handler.                       | `((event: GestureResponderEvent) => void) & (() => void)` |
| `handleAttachButtonPress` | Callback for custom attach-button behavior. | `() => void`                                              |
| `toggleAttachmentPicker`  | Toggle attachment picker visibility.        | `() => void`                                              |


---

This page was last updated at 2026-04-17T17:33:45.952Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/ui-components/message-composer/components/input-buttons/attach-button/](https://getstream.io/chat/docs/sdk/react-native/ui-components/message-composer/components/input-buttons/attach-button/).