@braintree/iframer

A utility to consistently create iframes

Usage no npm install needed!

<script type="module">
  import braintreeIframer from 'https://cdn.skypack.dev/@braintree/iframer';
</script>

README

iframer

A utility to allow consistent iframe creation.

Example

var iframer = require("iframer");

var myIframe = iframer({
  name: "braintree-dropin-iframe",
  style: "z-index: 999",
  width: "100%",
  height: "68",
});

document.body.appendChild(myIframe);

Testing

npm t