rescript-iframe-fit-content

0.0.1 • Public • Published

ReScript Iframe Fit Content

Automatically set the height of the iframe based on the content.

Installation

npm install rescript-iframe-fit-content

Then add rescript-iframe-fit-content to bs-dependencies in your bsconfig.json. A minimal example:

{
  "name": "my-thing",
  "sources": "src",
  "bs-dependencies": ["rescript-iframe-fit-content"]
}

Usage

ReScript

iframeElement -> IframeFitContent.make

JavaScript

import * as IframeFitContent from 'rescript-iframe-fit-content'
const iframe = document.getElementById("iframe")
IframeFitContent.make(iframe)

See the examples folder.

Package Sidebar

Install

npm i rescript-iframe-fit-content

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

6.58 kB

Total Files

7

Last publish

Collaborators

  • daysv