Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@braintree/iframer

braintree1.2mMIT2.0.1TypeScript support: included

A utility to consistently create iframes

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