---
id: attach-button
title: AttachButton
---

import SelectedPicker from '../common-content/contexts/attachment-picker-context/selected_picker.mdx';
import Disabled from '../common-content/contexts/channel-context/disabled.mdx';

Component to render a button to open the attachment picker, within the [`MessageInput`](./message_input.mdx).
This is the default component provided to the prop [`AttachButton`](../core-components/channel.mdx#attachbutton) on the `Channel` component.

## Props

### <div class="label description">_overrides the value from [ChannelContext](../contexts/channel_context.mdx#disabled)_</div> disabled {#disabled}

<Disabled />

### handleOnPress

`onPress` handler for this button.

| Type |
| - |
| function |

### <div class="label description">_overrides the value from [AttachmentPickerContext](../contexts/attachment_picker_context.mdx#selectedpicker)_</div> selectedPicker {#selectedpicker}

<SelectedPicker />