Package Exports
- @open-iframe-resizer/core
Readme
Open Iframe Resizer
Overview
A modern, lightweight alternative for resizing iframes dynamically. It is shipped under the MIT license, making it usable in commercial projects.
If you found this project helpful, please consider starring the repository!
Getting Started
Browser (ES6 modules)
<script type="module">
import { initialize } from "https://cdn.jsdelivr.net/npm/@open-iframe-resizer/core@latest/dist/index.min.js";
initialize({}, "#my-iframe");
</script>
You can found a working example here
Package
Note you can also install the core package through npm:
npm install @open-iframe-resizer/core
React
A React component is also available:
npm install @open-iframe-resizer/react
Full documentation
Explore the full documentation
Browser support
Chrome | Safari | Firefox | Opera | IE |
---|---|---|---|---|
64+ | 13.1+ | 69+ | 51+ | 🙅♂️ |