react-framed

1.0.0 • Public • Published

react-framed

react-framed provides 4 React components which are useful for rendering content in iframes or popup windows with varying degrees of isolation.

The components, SameOriginFrame, SameOriginWindow, CrossOriginFrame, and CrossOriginWindow, are just the 4 permutations of the SameOrigin or CrossOrigin higher-order components with the Window and Frame components:

  • Frame: Renders an <iframe>.
  • Window: Renders a pop-up window using window.open().
  • SameOrigin: Allows rendering of child components directly, provides some isolation.
  • CrossOrigin: Renders an external html file in an iframe, passes props via postMessage. Provides full isolation.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i react-framed

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • tlrobinson