Skip to content
providerkit
GitHub

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 Parameter Default type
F extends AttachmentFile File
optional attachments?: AttachmentOptions<F>;

Defined in: react/src/composer.ts:31


optional canSend?: boolean;

Defined in: react/src/composer.ts:28


optional draft?: DraftOptions;

Defined in: react/src/composer.ts:32


optional initialAttachments?: readonly AttachmentRef[];

Defined in: react/src/composer.ts:30


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

Parameter Type
input MessageInput

Promise<SendResult>