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

1.3.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

Dependents (1)

Package Sidebar

Install

npm i @open-iframe-resizer/react

Weekly Downloads

55

Version

1.3.0

License

MIT

Unpacked Size

16.6 kB

Total Files

6

Last publish

Collaborators

  • lemick