componentes

fileuploader

FileUploader é um componente para inserir arquivos clicando ou com drag and drop.

demo interativa

Uma versão de interativa do componente desenvolvido.

propriedades*

propertydescriptionrequireddefault valuetype

accept

Accepted extensions

false.png,.jpg,.pdfstring

multiple

If multiple files is accepted

falsefalseboolean

uploadWithButton

Upload file via button

falsefalseboolean

maxSize

Max file size in MB

false10number

uploadButtonTitle

Label for upload button

falseundefinedstring

uploadButtonIcon

Icon for upload button

falseundefinedFC<SVGProps<SVGSVGElement>>

dropzoneTitle

Title for dropzone container

falseundefinedstring

dropzoneSubtitle

Subtitle for dropzone container

falseundefinedstring

maxSizeErrorMsg

Error message for max file size

falseundefinedstring

onChange

On files change event trigger

falseundefined(files: any) => void

*valores gerados automaticamente.

Migração do United para Olist Design System

Propriedades

UnitedOlist Design System
acceptaccept
multiplemultiple
onChangeonChange