UNPKG

@sikka/hawa

Version:

Modern UI Kit made with Tailwind

38 lines (35 loc) 1.03 kB
import React from 'react'; type FileDropzoneTypes = { /** The text label above the component. Consistant with the other form input fields */ label?: string; files: [File]; setFiles: any; setDeletedFiles: any; maxFiles: number; accept: any; onAcceptedFiles: any; showPreview: any; onDeleteFile: any; onClearFiles: any; maxSize: number; errorMessages: string; disclaimer?: boolean; termsLink?: string; privacyLink?: string; /** The translation object, use this to replace the default text with any translated text you want.*/ texts: { errorUploading: any; clickHereToUpload: any; maxFileSize: any; tooManyFiles: any; fileTooLarge: any; acceptedFileTypes: any; invalidFileType: any; terms?: string; privacyPolicy?: string; disclaimer?: string; and?: string; }; }; declare const FileDropzone: React.FunctionComponent<FileDropzoneTypes>; export { FileDropzone };