Skip to content

@sqlrooms/ai-core / ChatComposerSendProps

Type Alias: ChatComposerSendProps

ChatComposerSendProps = Omit<ActionButtonProps, "onActivate"> & object

Props for Send.

Type Declaration

NameTypeDescription
onBeforeSend()?(text) => boolean | voidSynchronous pre-send veto, called with the text about to be sent. Return false to abort; any other value proceeds. Preferred over calling preventDefault() on the click, which reads as an obscure idiom for "do not send". Synchronous, matching Input's seam.