@afzalimdad9/react-file-preview
Version:
The url previewer is built using native html elements for previewing url of files of the following type
6 lines • 431 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
export default function DocumentViewer(_a) {
var src = _a.src, onLoad = _a.onLoad;
return (_jsx("iframe", { id: 'msdoc-iframe', title: 'msdoc-iframe', height: '100%', width: '100%', onLoad: function () { return onLoad(true); }, src: "https://view.officeapps.live.com/op/embed.aspx?src=".concat(encodeURIComponent(src)) }));
}
//# sourceMappingURL=document-viewer.js.map