React bindings for IntegrationOS Embed
npm install @integrationos/embed-reactReact hook and components for integrating with IntegrationOS Embed.
With npm:
``jsx`
npm i @integrationos/embed-react
With yarn:
`jsx`
yarn add @integrationos/embed-react
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.
`jsx
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: () => {},
});
``
Please refer to the official IntegrationOS Embed docs for a more holistic understanding of IntegrationOS Embed.