react-jotform
Version:
"A React component to embed the Jotform iframe"
32 lines (24 loc) • 879 B
Markdown
# react-jotform
A React component to embed the Jotform iframe [https://www.jotform.com/](https://www.jotform.com/)
This handles the resize mechanism provided by JotForm.
[](https://www.npmjs.com/package/react-jotform)
[](https://github.com/antoniowd/react-jotform/issues)
## Install
```
npm install react-jotform
```
## Usage
```jsx
import Jotform from 'react-jotform';
<Jotform
src="https://form.jotform.com/123456789"
defaults={{
name: 'John'
}}
/>
```
## Props
- src : The url of your jotform, as given in their publish section.
- defaults: An object to define defaults values for the jotform.
- scrolling : A boolean to allow or disallow scrolling. Scrolling is turned off by default.
- title: A title for the jotform.