react-jotform-embed
Version:
A rewrite for React of the embedded iframe provided by JotForm
38 lines (26 loc) • 1.21 kB
Markdown
# 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.
[](https://www.npmjs.com/package/react-jotform-embed)
[](https://github.com/xurei/react-jotform-embed/issues)
[](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