@wix/design-system
Version:
@wix/design-system
29 lines • 795 B
TypeScript
export default FilePicker;
/**
* # `<FilePicker/>`
*
* Component that opens system browser dialog for choosing files to upload
*/
declare class FilePicker extends React.PureComponent<any, any, any> {
constructor(props: any);
state: {
selectedFileName: any;
};
id: any;
/** A callback which is invoked every time a file is chosen */
onChooseFile(file: any): void;
render(): React.JSX.Element;
}
declare namespace FilePicker {
let displayName: string;
namespace defaultProps {
let mainLabel: string;
let subLabel: string;
function onChange(): void;
let supportedFormats: string;
let errorMessage: string;
let maxSize: number;
}
}
import React from 'react';
//# sourceMappingURL=FilePicker.d.ts.map