import { GlobalProps } from '../../shared/global'; import { BasicFieldProps, FileInputProps } from '../../shared/input'; export interface DropZoneProps extends GlobalProps, FileInputProps, BasicFieldProps { /** * A string representing the types of files that are accepted by the dropzone. * This string is a comma-separated list of unique file type specifiers which can be one of the following: * - A file extension starting with a period (".") character (e.g. .jpg, .pdf, .doc) * - A valid MIME type string with no extensions * * If left empty, the dropzone will accept all files. * * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept */ accept?: string; /** * A label that describes the purpose or contents of the item. When set, * it will be announced to buyers using assistive technologies and will * provide them with more context. */ accessibilityLabel?: string; /** * Defines if the user can select or drop multiple files at once. * * @default false */ multiple?: boolean; /** * Callback when rejected files are dropped. Files are rejected based on the `accept` prop. */ onDropRejected?(files: File[]): void; }