@afzalimdad9/react-file-preview
Version:
The url previewer is built using native html elements for previewing url of files of the following type
11 lines (10 loc) • 337 B
TypeScript
import { ReactEventHandler } from 'react';
interface Props {
src: string;
onError: ReactEventHandler<HTMLVideoElement>;
onLoad: (value: boolean) => void;
mimeType: string;
autoPlay: boolean;
}
export default function VideoViewer({ src, onError, onLoad, mimeType, autoPlay }: Props): JSX.Element;
export {};