@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
32 lines • 1.32 kB
TypeScript
import React from 'react';
import { BaseComponentProps } from '../internal/base-component/index.js';
import { TokenGroupProps } from '../token-group/interfaces.js';
export declare namespace FileTokenProps {
interface I18nStrings {
removeFileAriaLabel?: (fileIndex: number) => string;
errorIconAriaLabel?: string;
warningIconAriaLabel?: string;
formatFileSize?: (sizeInBytes: number) => string;
formatFileLastModified?: (date: Date) => string;
}
}
interface FileTokenProps extends BaseComponentProps {
file: File;
onDismiss: () => void;
showFileSize?: boolean;
showFileLastModified?: boolean;
showFileThumbnail?: boolean;
errorText?: React.ReactNode;
warningText?: React.ReactNode;
loading?: boolean;
readOnly?: boolean;
i18nStrings?: FileTokenProps.I18nStrings;
dismissLabel?: string;
alignment?: TokenGroupProps.Alignment;
groupContainsImage?: boolean;
isImage: boolean;
index: number;
}
declare function InternalFileToken({ file, showFileLastModified, showFileSize, showFileThumbnail, i18nStrings, onDismiss, errorText, warningText, readOnly, loading, alignment, groupContainsImage, isImage, index, }: FileTokenProps): JSX.Element;
export default InternalFileToken;
//# sourceMappingURL=file-token.d.ts.map