# iframe-resizer-react **Repository Path**: mirrors_akheron/iframe-resizer-react ## Basic Information - **Project Name**: iframe-resizer-react - **Description**: The official React interface for Iframe-Resizer - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # iframe-resizer-react [![NPM](https://img.shields.io/npm/v/iframe-resizer-react.svg)](https://www.npmjs.com/package/iframe-resizer-react) This library is the official React interface for [iframe-resizer](https://github.com/davidjbradshaw/iframe-resizer), which enables the automatic resizing of the height and width of both same and cross domain iFrames to fit their contained content. It provides a range of features to address the most common issues with using iFrames, these include: - Height and width resizing of the iFrame to content size. - Works with multiple and nested iFrames. - Domain authentication for cross domain iFrames. - Provides a range of page size calculation methods to support complex CSS layouts. - Detects changes to the DOM that can cause the page to resize using [MutationObserver](https://developer.mozilla.org/en/docs/Web/API/MutationObserver). - Detects events that can cause the page to resize (Window Resize, CSS Animation and Transition, Orientation Change and Mouse events). - Simplified messaging between iFrame and host page via [postMessage](https://developer.mozilla.org/en-US/docs/Web/API/window.postMessage). - Fixes in page links in iFrame and supports links between the iFrame and parent page. - Provides custom sizing and scrolling methods. - Exposes parent position and viewport size to the iFrame. - Works with [ViewerJS](http://viewerjs.org/) to support PDF and ODF documents. - Supports IE 11 ## Donate Iframe-resizer is the result of many 100s of hours of work, if you would like to join others in showing support for the development of this project, then please feel free to buy me a coffee. Buy Me A Coffee ## Install ```bash npm install --save iframe-resizer-react ``` ## Usage The `` component can be passed all`