OutputButtons

OutputButtons renders the single trailing action button of the message composer.

It selects which button to show based on the current composer state, in priority order: StopMessageStreamingButton while the AI is thinking or generating, EditButton when editing a message or a command is active, CooldownTimer while slow mode is active, StartAudioRecordingButton when audio recording is enabled and there is no text or attachments, and SendButton otherwise. All values are derived from context, and every prop is an optional override of that context-derived value.

Props

PropDescriptionType
isOnlineConnection status; disables send for commands while offline.boolean
channelChannel used to detect the AI generation state.Channel
audioRecordingEnabledShow the audio recording button when text and attachments are empty.boolean
audioRecordingSendOnCompleteSend the recording automatically once it completes.boolean
asyncMessagesMinimumPressDurationMinimum press duration to start an async audio recording.number
asyncMessagesSlideToCancelDistanceSlide distance required to cancel a recording.number
asyncMessagesLockDistanceSlide distance required to lock a recording.number
cooldownIsActiveRender the cooldown timer instead of the send button.boolean
hasAttachmentsWhether the composer has attachments (affects the audio-vs-send choice).boolean