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