ComposerOptions
Defined in: react/src/composer.ts:24
F is the file type addFiles takes: a web File whenever attachments.upload can take one,
or else the phone picker’s type that upload takes (see AttachmentFile).
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
F extends AttachmentFile |
File |
Properties
Section titled “Properties”attachments?
Section titled “attachments?”optional attachments?: AttachmentOptions<F>;Defined in: react/src/composer.ts:31
canSend?
Section titled “canSend?”optional canSend?: boolean;Defined in: react/src/composer.ts:28
draft?
Section titled “draft?”optional draft?: DraftOptions;Defined in: react/src/composer.ts:32
initialAttachments?
Section titled “initialAttachments?”optional initialAttachments?: readonly AttachmentRef[];Defined in: react/src/composer.ts:30
initialText?
Section titled “initialText?”optional initialText?: string;Defined in: react/src/composer.ts:29
scope: DraftScope;Defined in: react/src/composer.ts:26
A change to either id starts an isolated composer, even without persistence.
send: (input) => Promise<SendResult>;Defined in: react/src/composer.ts:27
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
MessageInput |
Returns
Section titled “Returns”Promise<SendResult>