UNPKG

react-jotform-embed

Version:

A rewrite for React of the embedded iframe provided by JotForm

38 lines (26 loc) 1.21 kB
# react-jotform-embed A rewrite for React of the embedded iframe provided by JotForm [https://www.jotform.com/](https://www.jotform.com/) This handles the resize mechanism provided by JotForm. [![npm](https://img.shields.io/npm/v/react-jotform-embed.svg)](https://www.npmjs.com/package/react-jotform-embed) [![GitHub issues](https://img.shields.io/github/issues/xurei/react-jotform-embed.svg)](https://github.com/xurei/react-jotform-embed/issues) [![Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&link=<url>)](https://github.com/sponsors/xurei) ## Install ``` npm install react-jotform-embed ``` ## Usage ```jsx import JotformEmbed from 'react-jotform-embed'; <JotformEmbed src="https://form.jotformeu.com/123456789" /> ``` ## Props - src : The url of your jotform, as given in their publish section. - scrolling : A boolean to allow or disallow scrolling. Scrolling is turned off by default ## Notes To pre-populate forms in the field, add them as url params to your form. For example: ```jdx let name = "John"; <JotformEmbed src="https://form.jotformeu.com/123456789?name=John" /> ``` ## Support Open-Source Support my work on https://github.com/sponsors/xurei