UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

21 lines (20 loc) 601 B
import * as React from 'react'; import { FileDropperStyles } from './fileDropper.styles'; export interface FileMetadataType { lastModified: number; lastModifiedDate: string; name: string; size: number; type: string; webkitRelativePath: string; } export interface FileDropperType { id: string; label?: string; onFileDrop: (file: FileList[]) => void; onFileContentAvailable: (file: File) => void; showIcon?: boolean; styleOverwrites?: FileDropperStyles; onError?: (error: Error) => void; } export declare const FileDropper: React.FC<FileDropperType>;