@open-iframe-resizer/react
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

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

/@open-iframe-resizer/react/

    Package Sidebar

    Install

    npm i @open-iframe-resizer/react

    Weekly Downloads

    954

    Version

    1.5.0

    License

    MIT

    Unpacked Size

    17 kB

    Total Files

    6

    Last publish

    Collaborators

    • lemick