epg-modal
v1.0.0
Published
React modal component with iframe support for eCommission EPG integration
Maintainers
Readme
epg-modal
React modal component with iframe support for eCommission EPG integration.
Installation
npm install epg-modalUsage
Add the EpgModal component to your app root:
import EpgModal from "epg-modal";
function App() {
return (
<>
{/* Your app content */}
<EpgModal />
</>
);
}Open the modal from anywhere using the global function:
window.openEpgModal("https://example.com/your-iframe-url");Features
- Portal-based modal rendering
- Smooth fade animations
- Responsive design
- PostMessage API integration for iframe communication
- Auto-closes when receiving close message from iframe
License
MIT
