Optional
buttonsA list of buttons that will resolve the message. By default, a Proceed
button with value ok
. The helper will resolve with the value of the button that was clicked.
Optional
descriptionA description shown under the title. Usually, describes the contents of the step.
Optional
errorThe error message to display if the user tries to upload too many files.
Optional
fileThe text of the upload file input.
The title of the file upload dialog.
Optional
forceForce the position of the bubble.
Optional
isIf true, the bubble will be draggable. Default true
Optional
loadingThe text to display while the file is being uploaded.
Optional
maxThe maximum number of files that can be uploaded.
Optional
maxPre-validation of file size, before converting to base64.
Optional
minThe minimum number of files that can be uploaded.
Optional
overlayObscure the content behind the message and prevent interaction.
Markdown text to show in the content. Usually, the instructions for the current step. It also accepts ReactNodes.
Optional
titleA title shown in the header. Usually, the title of the step.
The label to use for the upload button.
Optional
validateA 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.
The options to configure the file upload dialog.