@ecommission/epg-modal
v1.1.2
Published
React modal component with iframe support for eCommission EPG integration
Maintainers
Readme
@ecommission/epg-modal
React modal component with iframe support for eCommission EPG integration.
Installation
npm install @ecommission/epg-modalUsage
Add the EpgModal component to your app root:
import EpgModal from "@ecommission/epg-modal";
function App() {
return (
<>
{/* Your app content */}
<EpgModal />
</>
);
}Open the modal from anywhere using the global function:
window.openEpgModal("https://cdn.ecommission.com/lw/terms.php?jwt=...");The modal closes automatically when it receives a close message from the iframe.
License
MIT
