@gpa-gemstone/react-forms
Version:
React Form modules for gpa webapps
18 lines (17 loc) • 541 B
TypeScript
interface IProps {
/**
* Callback function that will be called when a file is uploaded
* */
OnLoadHandler: (result: File) => Promise<any>;
/**
* Callback function that will be called when clear button is clicked
* */
OnClearHandler: () => void;
/**
* Attribute used to control what type of files are filtered by default in file explorer
* @type {string}
* */
FileTypeAttribute: string;
}
declare const FileUpload: (props: IProps) => JSX.Element;
export default FileUpload;