npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@flownet/form-iframe

v0.1.19

Published

This project provides a straightforward solution for embedding and displaying content within an iframe using React. It utilizes a reusable component that makes integrating external web pages or applications into your React application both simple and effi

Readme

@flownet/form-iframe

This project provides a straightforward solution for embedding and displaying content within an iframe using React. It utilizes a reusable component that makes integrating external web pages or applications into your React application both simple and efficient.

How It Works

The @flownet/form-iframe project primarily functions as a React component that wraps iframe functionality. By using this component, users can seamlessly embed external content, such as web pages, multimedia, or services, into their React applications without manually handling iframe HTML tags and attributes.

Key Features

  • Easy Integration: Embed an iframe with minimal setup by simply passing the desired URL through the src prop.
  • Responsive Design: The iframe is designed to occupy the full width and height of its container, adjusting dynamically to ensure the best possible display on any device.
  • Full-Screen Support: Users can enjoy content in full-screen mode, thanks to the iframe's fullscreen capabilities.
  • Comprehensive Permissions: The component includes necessary permissions to enhance the user experience, such as autoplay, clipboard write, and media controls.

Conclusion

@flownet/form-iframe offers a practical and minimalistic approach to embedding iframes within React applications. It serves as a handy tool for developers needing to incorporate external content into their projects with ease and flexibility.

@flownet/form-iframe Developer Guide

Overview

The @flownet/form-iframe library provides a simple and efficient way to embed iframes into your React projects. By leveraging this library, developers can easily integrate external content such as forms, videos, and more into their applications. The key feature of this library is its ability to create responsive iframe components with minimal setup.

Installation

To install the @flownet/form-iframe library in your project, you can use either npm or yarn. Run one of the following commands in your project directory:

Using npm:

npm install @flownet/form-iframe

Using yarn:

yarn add @flownet/form-iframe

Usage

To use the @flownet/form-iframe library, import it into your React component and provide it with the necessary props. The primary prop to pass is src, which specifies the URL of the content you want to display within the iframe.

Example

Below is an example of how to use @flownet/form-iframe to embed an external form into your application:

import React from 'react';
import FormIframe from '@flownet/form-iframe';

const MyApp = () => {
  return (
    <div style={{ width: '600px', height: '400px' }}>
      <FormIframe src="https://example.com/form" />
    </div>
  );
};

export default MyApp;

Examples

Here are some typical use cases where @flownet/form-iframe can be used effectively:

  1. Embedding a YouTube Video:

    import React from 'react';
    import FormIframe from '@flownet/form-iframe';
    
    const VideoEmbed = () => (
      <div style={{ width: '100%', height: '500px' }}>
        <FormIframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" />
      </div>
    );
    
    export default VideoEmbed;
  2. Displaying a Survey Form:

    import React from 'react';
    import FormIframe from '@flownet/form-iframe';
    
    const SurveyForm = () => (
      <div style={{ width: '700px', height: '500px' }}>
        <FormIframe src="https://surveysite.com/surveyform" />
      </div>
    );
    
    export default SurveyForm;

Acknowledgement

The @flownet/form-iframe library relies on the flexibility of React for rendering components seamlessly. Special thanks to the React community for their ongoing contributions and support.

Input Schema

$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
  src:
    type: string
    description: URL loaded into the iframe
    format: uri
  allow:
    type: string
    description: Permissions for iframe content
    default: accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;
      picture-in-picture; web-share
  allowFullScreen:
    type: boolean
    description: Enables full screen mode for the iframe
    default: true
  style:
    type: object
    description: CSS styles for the iframe
    properties:
      width:
        type: string
        description: Width of the iframe
        default: 100%
      height:
        type: string
        description: Height of the iframe
        default: 100%
      border:
        type: string
        description: Border style of the iframe
        default: none
    additionalProperties: false
required:
  - src
additionalProperties: false