react-hubspot-form

1.3.7 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i react-hubspot-form

Weekly Downloads

23,741

Version

1.3.7

License

MIT

Unpacked Size

253 kB

Total Files

11

Last publish

Collaborators

  • amadoa
  • dalewray
  • codevelopit
  • mastaaaron
  • escasports
  • tbaustin
  • ken85rose