# 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

### `disabled`

| Type      |
| --------- |
| `boolean` |

### `handleOnPress`

Custom press handler.

| Type                                                      |
| --------------------------------------------------------- |
| `((event: GestureResponderEvent) => void) & (() => void)` |

### `handleAttachButtonPress`

Callback for custom attach-button behavior.

| Type         |
| ------------ |
| `() => void` |

### `toggleAttachmentPicker`

Toggle attachment picker visibility.

| Type         |
| ------------ |
| `() => void` |


---

This page was last updated at 2026-04-03T17:24:32.301Z.

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