@stihl-design-system/components
Version:
Welcome to the STIHL Design System react component library.
17 lines (16 loc) • 744 B
TypeScript
import { JSX } from 'react';
import { Theme } from '../../../utils/theme';
import { FileWithUploadMeta } from '../InputFile';
import { InputFileTranslations } from '../InputFile.utils';
import { ProgressIndicatorVariant } from './ProgressIndicator/ProgressIndicator';
export interface FileListProps {
/**
* List of files to display in the file list, each with upload metadata.
*/
files: FileWithUploadMeta[];
onRemoveFile: (index: number) => void;
t: (key: keyof InputFileTranslations, values?: Record<string, string | number>) => string;
showProgress?: ProgressIndicatorVariant;
theme?: Theme;
}
export declare const FileList: ({ files, onRemoveFile, t, showProgress, theme, }: FileListProps) => JSX.Element;