@procore/core-react
Version:
React library of Procore Design Guidelines
15 lines • 886 B
JavaScript
import React from 'react';
var iframeHtml = "\n<html style=\"\n height: 100%;\n width: 100%;\n\">\n <head></head>\n <body style=\"\n height: 100%;\n width: 100%;\n margin: 0;\n \">\n <video style=\"width: 100%;height: 100%;position: absolute;background: black;\" top:=\"\" 0;=\"\" left:=\"\">\n <source src=\"static/media/src/components/Tile/mocks/video.mp4\" type=\"video/mp4\">\n Your browser doesn't support HTML5 video tag.\n </video>\n </body>\n</html>";
var Iframe = function Iframe(_ref) {
var _ref$title = _ref.title,
title = _ref$title === void 0 ? 'Video player' : _ref$title;
return /*#__PURE__*/React.createElement("iframe", {
width: "400px",
height: "225px",
srcDoc: iframeHtml,
title: title,
frameBorder: "0"
});
};
export default Iframe;
//# sourceMappingURL=iframe.js.map