@open-iframe-resizer/react
v1.3.0
Published
Open-source modern iframe resizer component
Downloads
1,326
Maintainers
Readme
Open Iframe Resizer React
Overview
iframe-resizer
is a modern, lightweight library for resizing iframes dynamically. It is shipped under the MIT license, making it usable in commercial projects.
If you found this plugin helpful, please consider starring the repository!
Getting Started
Install the package:
npm install @open-iframe-resizer/react
Wrap your iframes with it to resize them automatically:
import { IframeResizer } from "@open-iframe-resizer/react";
function YourComponent() {
return (
<div>
<IframeResizer src="https://github.com" />
</div>
);
}
You can found a working example here