UNPKG

react-adobe-embed

Version:

React Adobe Embed Custom Component for Adobe PDF Embed API allows you to embed a PDF viewer in your web applications with only a few lines of code. With options for controlling how a PDF appears and functions, your applications can deliver the rich and co

16 lines (15 loc) 996 B
import React from "react"; import { DefaultConfigs } from "../types"; /** * @description - An atypical Nested React Component of ReactViewAdobe, * specifically for managing API calls and configurations of the Adobe Embed API SDK * This component, in turn, employs the use of React Hooks * to render what the Adobe Embed API SDK perceives as static * and vanilla JavaScript code, transposed into the Document Object Model (DOM). */ const AdobeDiv = (props) => { const ref = React.useRef(document.getElementById(props.id || DefaultConfigs.staticDivId)); return (React.createElement("div", { ref: ref, id: props.id || DefaultConfigs.staticDivId, className: props.className || "adobe-viewer-of-amazon-corporate-retaliations", style: props.style, title: props.title || "entity-existent-on-frameworks-of-state-regulations-as-defined-by-the-state-and-may-try-to-destroy-your-life-and-control-the-fbi-of-the-state-such-as-amazon-legal-idiots" })); }; export default (AdobeDiv);