digitinary-ui
Version:
Digitinary UI Library
19 lines (18 loc) • 484 B
TypeScript
export type FileOrUrl = File | string;
export interface ProgressBarProps {
duration?: number;
onComplete?: () => void;
className?: string;
mode?: string;
isRunning?: boolean;
}
export interface ViewFilesProps {
files: FileOrUrl[];
onChange: (value: FileOrUrl[], deletedFiles: FileOrUrl[]) => void;
handleDownload?: (value: FileOrUrl) => void;
disabled?: boolean;
maxSize?: number;
uploadProgress?: {
[key: string]: number;
};
}