@spark-web/dropzone
Version:
--- title: Drop Zone isExperimentalPackage: true ---
33 lines (32 loc) • 1.67 kB
TypeScript
import type { InputHTMLAttributes } from 'react';
import type { Accept } from 'react-dropzone';
type InputProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'onChange' | 'onBlur'>;
export type DropzoneProps = InputProps & {
/** File type(s) that the Dropzone should be allowed to accept. */
accept?: Accept;
/** Maximum number of files that the Dropzone should be allowed to accept. */
maxFiles?: number;
/** Maximum file size that the Dropzone should be allowed to accept. Value should be provided in kB */
maxFileSizeKb?: number;
/** Minimum file size that the Dropzone should be allowed to accept. Value should be provided in kB */
minFileSizeKb?: number;
/** When true, renders an image preview next to file previews. */
showImageThumbnails?: boolean;
/** Allows multiple file selection */
multiple?: boolean;
};
export declare const Dropzone: import("react").ForwardRefExoticComponent<InputProps & {
/** File type(s) that the Dropzone should be allowed to accept. */
accept?: Accept;
/** Maximum number of files that the Dropzone should be allowed to accept. */
maxFiles?: number;
/** Maximum file size that the Dropzone should be allowed to accept. Value should be provided in kB */
maxFileSizeKb?: number;
/** Minimum file size that the Dropzone should be allowed to accept. Value should be provided in kB */
minFileSizeKb?: number;
/** When true, renders an image preview next to file previews. */
showImageThumbnails?: boolean;
/** Allows multiple file selection */
multiple?: boolean;
} & import("react").RefAttributes<HTMLInputElement>>;
export {};