@codesmith-99/react-file-preview
Version:
The url previewer is built using native html elements for previewing url of files of the following type
16 lines (14 loc) • 475 B
TypeScript
import React from "react";
import { JSX } from "react/jsx-runtime";
interface Props {
loader?: React.ReactNode;
mimeType?: string;
fileName?: string;
src: string;
onError?: (e: any) => void;
autoPlay?: boolean;
containerErrorStyle?: React.CSSProperties;
}
declare function FileViewer({ loader, mimeType, src, onError, fileName, autoPlay, containerErrorStyle, }: Props): JSX.Element;
export default FileViewer;
//# sourceMappingURL=types.d.ts.map