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 🙏

© 2024 – Pkg Stats / Ryan Hefner

jotform-react

v1.1.1

Published

React Wrapper for Embedding JotForm Forms With SSR support (also supports NextJS/Gatsby/CRA)

Downloads

5,066

Readme

Jotform React Embed (jotform-react)

Jotform-React: Seamlessly Embed Jotform Forms in Your React App

Easily integrate Jotform Forms into your React projects, including Gatsby, Next.js, and Create-React-App applications.

Create versatile and customizable forms with Jotform.com and effortlessly embed them in your website or app.

Unlock the potential of Jotform's extensive selection of over 300 form fields, including advanced options such as signature, image capture, and PDF embedding.

Benefit from features like support for multiple forms, auto-resizing, and submission callbacks.

Installation

Jotform React Embed is available as an open-source project on GitHub (jotform-react) and can be installed via NPM (jotform-react)

Using Pnpm

pnpm add jotform-react

Using YARN

yarn add jotform-react

Using NPM

npm install jotform-react

Simple Usage

import JotFormReact 'jotform-react';

const YourApp = () => {
    return (<div>
      {/* Your App Content */}
      <JotFormReact
        formURL="https://form.jotform.com/211272589254055"
      />
    </div>)
}

Advanced Usage

import JotFormReact 'jotform-react';

const YourApp = () => {
  const handleSubmit = () => {
    alert("Form submit succeed!");
  };
  return (<div>
     {/* Your App Content */}
    <JotFormReact
      formURL="https://form.jotform.com/211272589254055"
      formID="211272589254055" // Required for multiple forms on the same page
      onSubmit={handleSubmit}
      initialHeight={300} // Initial form height
      autoResize={true} // Enable auto-resizing
    />
  </div>)
}

Prop List

| Prop | Default | Required (if applicable) | Description | |---------------|---------|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | formURL | - | Yes | URL The URL of your Jotform Form, obtainable from Jotform Form Builder's Publish page. Example: Example: https://form.jotform.com/211272589254055 | | autoResize | true | No | If true, the form will automatically resize as needed (e.g., for multi-page forms). Set to false to disable auto-resizing. | | autoFocus | true | No | If true, the form will automatically scroll into view as needed. Set to false to disable this behavior. | | heightOffset | 15 | No | The number of pixels added to the form's height to prevent browser-specific scroll issues. | | initialHeight | 540 | No | The initial height (in pixels) of the form. | formID | - | Conditional | Required when using multiple forms on the same page. You can find your formID in the Jotform link, which follows the format jotform.com/build/formID (visible in the browser's URL bar). | | onSubmit | - | No | A callback function to execute when the form submission is successful. | | ...rest | | No | You can directly set any other prop, such as styles, to the iframe element |

Changelog

1.1.1

  • Documentation update

1.1.0

  • Improved build system
  • React moved to peerDependencies to prevent conflicts
  • Transitioned to pnpm from yarn

Contact

For further information or assistance, please feel free to reach out:

Sabri Berkay Aydin - ([email protected]), ([email protected])