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*
property | description | required | default value | type |
---|---|---|---|---|
accept | Accepted extensions | false | .png,.jpg,.pdf | string |
multiple | If multiple files is accepted | false | false | boolean |
uploadWithButton | Upload file via button | false | false | boolean |
maxSize | Max file size in MB | false | 10 | number |
uploadButtonTitle | Label for upload button | false | undefined | string |
uploadButtonIcon | Icon for upload button | false | undefined | FC<SVGProps<SVGSVGElement>> |
dropzoneTitle | Title for dropzone container | false | undefined | string |
dropzoneSubtitle | Subtitle for dropzone container | false | undefined | string |
maxSizeErrorMsg | Error message for max file size | false | undefined | string |
onChange | On files change event trigger | false | undefined | (files: any) => void |
*valores gerados automaticamente.
Migração do United para Olist Design System
Propriedades
United | Olist Design System |
---|---|
accept | accept |
multiple | multiple |
onChange | onChange |