---
id: show-thread-message-in-channel-button
title: ShowThreadMessageInChannelButton
---

import AllowThreadMessagesInChannel from '../common-content/core-components/channel/props/allow_thread_messages_in_channel.mdx'
import SendThreadMessageInChannel from '../common-content/contexts/message-input-context/send_thread_message_in_channel.mdx'
import SetSendThreadMessageInChannel from '../common-content/contexts/message-input-context/set_send_thread_message_in_channel.mdx'

Component to render a checkbox (labeled "Also send to channel"), within the [`Thread`](./thread.mdx) component.
When this checkbox is checked by users, message sent as thread reply also gets added to parent channel's message list.

This is the default component provided to the prop [`ShowThreadMessageInChannelButton`](../core-components/channel.mdx#showthreadmessageinchannelbutton) on the `Channel` component.

## Props

### <div class="label description">_overrides the value from [ThreadContext](../contexts/thread_context.mdx#allowthreadmessagesinchannel)_</div> allowThreadMessagesInChannel {#allowthreadmessagesinchannel}

<AllowThreadMessagesInChannel />

### <div class="label description">_overrides the value from [MessageInputContext](../contexts/message_input_context.mdx#sendthreadmessageinchannel)_</div> sendThreadMessageInChannel {#sendthreadmessageinchannel}

<SendThreadMessageInChannel />

### <div class="label description">_overrides the value from [MessageInputContext](../contexts/message_input_context.mdx#setsendthreadmessageinchannel)_</div> setSendThreadMessageInChannel {#setsendthreadmessageinchannel}

<SetSendThreadMessageInChannel />