UNPKG

@wix/design-system

Version:

@wix/design-system

37 lines 1.23 kB
export default Dropzone; /** Defines a region in the page where files can be dropped */ declare class Dropzone extends React.PureComponent<any, any, any> { static displayName: string; /** * An overlay element to be displayed during a drag over the content */ static _overrideEventDefaults: (event: any) => void; constructor(props: any); constructor(props: any, context: any); state: { isDragActive: boolean; }; /** https://spin.atomicobject.com/2018/09/13/file-uploader-react-typescript/ */ _dragEventCounter: number; _eventHasFiles: (event: any) => boolean; _onDragEnter: (event: any) => false | void; _onDragLeave: (event: any) => false | void; _onDrop: (event: any) => any; render(): React.JSX.Element; } declare namespace Dropzone { function Overlay({ children }: { children: any; }): React.JSX.Element; namespace Overlay { let displayName: string; } function Content({ children }: { children: any; }): React.JSX.Element; namespace Content { let displayName_1: string; export { displayName_1 as displayName }; } } import React from 'react'; //# sourceMappingURL=Dropzone.d.ts.map