Skip to content

Interface: ShowFileUploadOptions

Defined in: src/file/getMwFile.tsx:135

The options to configure the file upload dialog.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
fileUploadTitleReactNodeThe title of the file upload dialog.-src/file/getMwFile.tsx:139
uploadButtonReactNodeThe label to use for the upload button.-src/file/getMwFile.tsx:143
maxFileLimit?numberThe maximum number of files that can be uploaded.-src/file/getMwFile.tsx:147
minFileLimit?numberThe minimum number of files that can be uploaded.-src/file/getMwFile.tsx:151
error?ReactNodeThe error message to display if the user tries to upload too many files.-src/file/getMwFile.tsx:155
fileUploadText?ReactNodeThe text of the upload file input.-src/file/getMwFile.tsx:159
loadingText?stringThe text to display while the file is being uploaded.-src/file/getMwFile.tsx:163
maxFileSize?{ size: number; message: string; }Pre-validation of file size, before converting to base64.-src/file/getMwFile.tsx:167
maxFileSize.sizenumber--src/file/getMwFile.tsx:168
maxFileSize.messagestring--src/file/getMwFile.tsx:169
validate?(mwFile: DroppedMwFile) => Promise<{ isValid: boolean; message: string; processedFile?: any; }>A function that takes a DroppedFile object and returns a promise that resolves to an object with isValid and message properties. If the isValid property is false, the message property should contain an error message. If the isValid property is true, the message property should be empty. If the validate function is not provided, all files will be considered valid.-src/file/getMwFile.tsx:177
title?ReactNodeTitle shown in the header.ShowMessageOptions.titlesrc/message/showMessage.tsx:17
description?ReactNodeDescription shown under the title.ShowMessageOptions.descriptionsrc/message/showMessage.tsx:20
textReactNodeMarkdown text or ReactNode shown in the content area.ShowMessageOptions.textsrc/message/showMessage.tsx:23
buttons?MessageBubbleButtonProps[]Buttons that resolve the message. Defaults to a single "Proceed" button with value ok.ShowMessageOptions.buttonssrc/message/showMessage.tsx:26
overlay?booleanIf true, obscure the page behind the message and block interaction.ShowMessageOptions.overlaysrc/message/showMessage.tsx:29
overlayProps?{ blur?: boolean; blurIntensity?: number; background?: "white" | "grey"; }Props passed to the overlay component.ShowMessageOptions.overlayPropssrc/message/showMessage.tsx:32
overlayProps.blur?booleanApply a blur effect to the obscured content-src/message/components/MessageBubble.tsx:29
overlayProps.blurIntensity?numberCustom blur intensity (in pixels)-src/message/components/MessageBubble.tsx:31
overlayProps.background?"white" | "grey"Background color of the overlay-src/message/components/MessageBubble.tsx:33
forcePosition?PositionForce the position of the bubble.ShowMessageOptions.forcePositionsrc/message/showMessage.tsx:35
isDraggable?booleanIf true, the bubble is draggable. Defaults to true.ShowMessageOptions.isDraggablesrc/message/showMessage.tsx:38

Matterway Assistant SDK Documentation