@tylermenezes/cognitoforms-react
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

CognitoForms React

A React component for embedding CognitoForms forms, making it easy to embed in a React-like way.

Usage:

import CognitoForm from '@tylermenezes/cognitoforms-react';


export default () => (
  <>
    <h1>My Demo Page</h1>
    <CognitoForm
      formId={61}
      accountId={`SOMEACCOUNTIDSTRING`}
      prefill={{
        Name: {
          First: 'John',
          Last: 'Peter',
        }
      }}
      css="* { color: red !important }"
    />
  </h1>
);

Readme

Keywords

none

Package Sidebar

Install

npm i @tylermenezes/cognitoforms-react

Weekly Downloads

115

Version

2.1.0

License

Artistic-2.0

Unpacked Size

15.9 kB

Total Files

10

Last publish

Collaborators

  • tylermenezes