@makeen.io/material-ui-kit
Version:
Makeen UI components kit. Based on material-ui.
30 lines (29 loc) • 896 B
TypeScript
import React from "react";
import { Theme } from "@material-ui/core";
export declare enum orientationConst {
horizontal = "horizontal",
vertical = "vertical"
}
export declare type UploaderProps = {
accept?: {
fileType: string;
name: string;
}[];
customLister?: boolean;
customTemplate?: boolean;
multiple?: boolean;
name?: string;
onChange: (files: Partial<File>[] | never) => void;
theme?: Theme;
label?: string;
description?: React.ReactFragment;
icon?: JSX.Element;
orientation?: orientationConst.horizontal | orientationConst.vertical;
width?: number | string;
height?: number | string;
dropFileType?: "times" | "bin";
showPreview?: boolean;
urls?: string[];
};
declare const Uploader: React.ForwardRefExoticComponent<Readonly<UploaderProps> & React.RefAttributes<unknown>>;
export default Uploader;