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

1.0.9 • Public • Published

embed-react

React hook and components for integrating with IntegrationOS Embed.

Install

With npm:

npm i @integrationos/embed-react

With yarn:

yarn add @integrationos/embed-react

Using the Embed component

You'll want to replace the token URL with your token endpoint URL, which can be securely generated from your backend using IntegrationOS' Tokens library.

import { useEmbed } from "@integrationos/embed-react";

const { open } = useEmbed({
  title: "Integrations",
  token: {
    url: "https://api.your-company-name.com/embed-token",
    headers: {},
  },
  onSuccess: (connections) => {},
  onError: (error) => {},
  onClose: () => {},
});

Full Documentation

Please refer to the official IntegrationOS Embed docs for a more holistic understanding of IntegrationOS Embed.

Package Sidebar

Install

npm i @integrationos/embed-react

Weekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

113 kB

Total Files

22

Last publish

Collaborators

  • buildable.paul
  • andrew-integrationos
  • moe-giga
  • krishp
  • dspataro77