mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-24 10:47:44 +00:00
39 lines
1 KiB
TypeScript
39 lines
1 KiB
TypeScript
import { Uppy, Locale } from './CommonTypes';
|
|
|
|
interface MetaField {
|
|
id: string;
|
|
name: string;
|
|
placeholder?: string;
|
|
}
|
|
|
|
export interface DashboardProps {
|
|
uppy: Uppy;
|
|
inline?: boolean;
|
|
plugins?: Array<string>;
|
|
trigger?: string;
|
|
width?: number;
|
|
height?: number;
|
|
showLinkToFileUploadResult?: boolean;
|
|
showProgressDetails?: boolean;
|
|
hideUploadButton?: boolean;
|
|
hideRetryButton?: boolean;
|
|
hidePauseResumeButton?: boolean;
|
|
hideCancelButton?: boolean;
|
|
hideProgressAfterFinish?: boolean;
|
|
showSelectedFiles?: boolean;
|
|
note?: string;
|
|
metaFields?: Array<MetaField>;
|
|
proudlyDisplayPoweredByUppy?: boolean;
|
|
disableStatusBar?: boolean;
|
|
disableInformer?: boolean;
|
|
disableThumbnailGenerator?: boolean;
|
|
thumbnailWidth?: number;
|
|
locale?: Locale;
|
|
}
|
|
|
|
/**
|
|
* React Component that renders a Dashboard for an Uppy instance. This component
|
|
* renders the Dashboard inline; so you can put it anywhere you want.
|
|
*/
|
|
declare const Dashboard: React.ComponentType<DashboardProps>;
|
|
export default Dashboard;
|