a-botermans / react-hubspot-form

Home Page:https://www.npmjs.com/package/react-hubspot-form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-hubspot-form

A React component to render HubSpot forms.

Installation

With npm:

npm install --save react-hubspot-form

Or with Yarn:

yarn add react-hubspot-form

Usage

import HubspotForm from 'react-hubspot-form'

...

<HubspotForm
   portalId='your_portal_id'
   formId='your_form_id'
   onSubmit={() => console.log('Submit!')}
   onReady={(form) => console.log('Form ready!')}
   loading={<div>Loading...</div>}
   />

Options

You can also set any additional options that HubSpot provides as properties in the component.

About

https://www.npmjs.com/package/react-hubspot-form

License:MIT License


Languages

Language:JavaScript 98.8%Language:HTML 1.2%