Arengu Forms for Gatsby websites
This Gatsby plugin allows you to easily embed Arengu Forms into your Gatsby website.
Install
npm install --save gatsby-plugin-arengu-forms
Getting started
Add the Arengu Forms plugin to your gatsby-config.js
file:
plugins: `gatsby-plugin-arengu-forms`
This plugin will load into your website our JavaScript SDK asynchronously, so it won’t affect your website load speed.
Usage
To use this plugin you have to import ArenguForm
component and pass the required props.
Example of basic usage
import React from "react"import ArenguForm from "gatsby-plugin-arengu-forms" const IndexPage = <div> <ArenguForm ="123456789" /> </div>
hiddenFields
prop
Example of usage with import React from "react"import ArenguForm from "gatsby-plugin-arengu-forms" const IndexPage = <div> <ArenguForm ="123456789" = /> </div>
ArenguForm Props
prop | type | description |
---|---|---|
id (required) | string | The Form ID of your form. You can find it in your form settings or share page. |
hiddenFields (optional) | array | Array of objects with key and value properties |