@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
29 lines (28 loc) • 1.31 kB
TypeScript
import { ThemingProps } from "../theme/types.js";
import "../theme/index.js";
import { IconProp } from "../icon/icon.types.js";
import "../icon/index.js";
import { BoxProps } from "../box/box.types.js";
import "../box/index.js";
//#region src/dragAndDrop/dragAndDrop.types.d.ts
type DragAndDropProps = Omit<BoxProps, 'variant'> & ThemingProps<'DragAndDrop'> & {
/** Defines the file types the file input should accept. This string is a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers). */
accept?: string;
/** Disabled. @default `false` */
disabled?: boolean;
/** The message icon. @default `falCloudUpload` */
icon?: IconProp;
/** Allows folder selection using click @default `false` */
selectFolderOnClick?: boolean;
/** Allows folder selection using drag and drop @default `false` */
selectFolderOnDrop?: boolean;
/** Allows to select multiple files when the drop zone is clicked @default `true` */
multiple?: boolean;
/** The message text. @default `Click or drag files to this area` */
text?: string;
/** Drop or file select callback */
onFilesAdded?: (files: File[]) => void;
};
//#endregion
export { DragAndDropProps };
//# sourceMappingURL=dragAndDrop.types.d.ts.map