react-iframe-resizer

iframe component enhanced by iframe-resizer

Usage no npm install needed!

<script type="module">
  import reactIframeResizer from 'https://cdn.skypack.dev/react-iframe-resizer';
</script>

README

react-iframe-resizer

<iframe> compontent that initialises with iframe-resizer.

Attributes

id

Required. Type: string

Unique iframe ID used by iframe-resizer.

options

Optional. Type object

Options object passed directly to iframe-resizer on initialisation. See iframe-resizer's options.

iframe attributes

All other attributes are passed through to the actual <iframe> component.