UNPKG

889 BTypeScriptView Raw
1import * as React from 'react';
2import { DropzoneProps } from 'react-dropzone';
3export interface MultipleFileUploadProps extends Omit<React.HTMLProps<HTMLDivElement>, 'value'> {
4 /** Content rendered inside the multi upload field */
5 children?: React.ReactNode;
6 /** Class to add to outer div */
7 className?: string;
8 /** Optional extra props to customize react-dropzone. */
9 dropzoneProps?: DropzoneProps;
10 /** Flag setting the component to horizontal styling mode */
11 isHorizontal?: boolean;
12 /** When files are dropped or uploaded this callback will be called with all accepted files */
13 onFileDrop?: (data: File[]) => void;
14}
15export declare const MultipleFileUploadContext: React.Context<{
16 open: () => void;
17}>;
18export declare const MultipleFileUpload: React.FunctionComponent<MultipleFileUploadProps>;
19//# sourceMappingURL=MultipleFileUpload.d.ts.map
\No newline at end of file