{"id":28754226,"url":"https://github.com/zeroasterisk/react-iframe-resizer-super","last_synced_at":"2025-08-09T14:17:29.573Z","repository":{"id":54788637,"uuid":"81765946","full_name":"zeroasterisk/react-iframe-resizer-super","owner":"zeroasterisk","description":"inject HTML into an iframe, and/or resize an iframe to the height of it's contents","archived":false,"fork":false,"pushed_at":"2019-11-07T10:58:25.000Z","size":246,"stargazers_count":50,"open_issues_count":14,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-19T16:18:47.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zeroasterisk.github.io/react-iframe-resizer-super","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeroasterisk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-12T23:30:49.000Z","updated_at":"2023-09-05T21:44:19.000Z","dependencies_parsed_at":"2022-08-14T03:00:42.578Z","dependency_job_id":null,"html_url":"https://github.com/zeroasterisk/react-iframe-resizer-super","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeroasterisk/react-iframe-resizer-super","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Freact-iframe-resizer-super","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Freact-iframe-resizer-super/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Freact-iframe-resizer-super/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Freact-iframe-resizer-super/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeroasterisk","download_url":"https://codeload.github.com/zeroasterisk/react-iframe-resizer-super/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Freact-iframe-resizer-super/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260269458,"owners_count":22983647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-17T01:07:59.673Z","updated_at":"2025-06-17T01:08:00.784Z","avatar_url":"https://github.com/zeroasterisk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Iframe Resizer With Super-Powers (cross domain, resize, etc)\n\nThis is a versatile [React](https://facebook.github.io/react/) Component\nwhich renders an iframe and wires in the excellent\n[Iframe Resizer](http://davidjbradshaw.github.io/iframe-resizer/) library.\n\n\nThis Component was created with the\n[React CDK](https://github.com/kadirahq/react-cdk)\nby the great folks at [Kadira](https://github.com/kadirahq).\n\nNOTE: Renamed to `react-iframe-resizer-super` because there is already a `react-iframe-resier` npm package.\n\n## Installation\n```sh\nnpm install --save react-iframe-resizer-super iframe-resizer\n```\n\n## Usage\n\n```jsx\nimport ReactIframeResizer from 'react-iframe-resizer-super';\n\n\nconst iframeResizerOptions = { checkOrigin: false };\n\nconst MyComponent = props =\u003e (\n  \u003cdiv\u003e\n    \u003cp\u003eContent Before Iframe (style unaffected by iframe)\u003c/p\u003e\n    \u003cReactIframeResizer iframeResizerOptions={iframeResizerOptions}\u003e\n      \u003cstyle\u003ep { color: green; }\u003c/style\u003e\n      \u003cp\u003eHere is some green text, inside an iframe\u003c/p\u003e\n    \u003c/ReactIframeResizer\u003e\n    \u003cp\u003eContent After Iframe (style unaffected by iframe)\u003c/p\u003e\n  \u003c/div\u003e\n);\n```\n\n### Props supported\n\n- `content` (string) iframe document option 1. - content of HTML to load in the iframe\n- `src` (string) iframe document option 2. - src to a URL to load in the iframe\n- `iframeResizerEnable` (bool) [true]\n- `iframeResizerOptions` (object) see all supported\n  [iframe-resizer](http://davidjbradshaw.github.io/iframe-resizer/) options.\n- `iframeResizerUrl` (string || bool) URL to the client JS for injecting into the\n  iframe.  This only works for `content` type, at the moment.  The default URL\n  is `https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.8/iframeResizer.contentWindow.min.js`. If you wanted to disable this, you could set it to {false}\n- `frameBorder` (number) [0] optionally set a frameBorder\n- `id` (string) optionally set an id property\n- `className` (string) optionally set a className property\n- `style` (object) optionally set a style property\n  default `{ width: '100%', minHeight: 20 }`\n\n## Examples\n\nSee our stories/demos at\n[zeroasterisk.github.io/react-iframe-resizer-super](https://zeroasterisk.github.io/react-iframe-resizer-super)\nand the\n[source of the stories/demo](https://github.com/zeroasterisk/react-iframe-resizer-super/blob/master/src/stories/index.js).\nand of course, more about\n[iframe-resizer](http://davidjbradshaw.github.io/iframe-resizer/)\nwhich is where most of the iframe magic happens.\n\n## Acknowledgements\n\n* [Iframe Resizer](http://davidjbradshaw.com/iframe-resizer/) library is\n  excellent and deals well with crappy browsers.\n  _(caution: do not try to roll your own)_\n* [React CDK](https://github.com/kadirahq/react-cdk) makes react Components\n  easy to create, document, test, and share.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroasterisk%2Freact-iframe-resizer-super","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeroasterisk%2Freact-iframe-resizer-super","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroasterisk%2Freact-iframe-resizer-super/lists"}