@panora/embedded-card-react
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Embedded Catalog of Providers (React)

It is a React component aimed to be used in any of your pages so end-users can connect their 3rd parties in 1-click!

Installation

npm i @panora/embedded-card-react

or

pnpm i @panora/embedded-card-react

or

yarn add @panora/embedded-card-react

Import the component

# Import the css file
import "@panora/embedded-card-react/dist/index.css";

import PanoraProviderCard from "@panora/embedded-card-react";

Use the component

  • The optionalApiUrl is an optional prop to use the component with the self-hosted version of Panora.
    <PanoraProviderCard 
    name={"hubspot"} // name of the provider  
    projectId={"c9a1b1f8-466d-442d-a95e-11cdd00baf49"} // the project id tied to your organization
    returnUrl={"https://acme.inc"} // the url you want to redirect users to after the connection flow is successful
    linkedUserId={"b860d6c1-28f9-485c-86cd-fb09e60f10a2"}  // the linked id of the user if already created in Panora system or user's info in your system
    optionalApiUrl={"http://localhost:3000"} // Only add this prop to use the component with a self-hosted version of Panora. Without this prop, the component uses the cloud version of Panora.
    />
These are the types needed for the component.

interface ProviderCardProp {
  name: string;
  projectId: string;
  returnUrl: string;
  linkedUserIdOrRemoteUserInfo: string;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @panora/embedded-card-react

Weekly Downloads

137

Version

1.2.1

License

ISC

Unpacked Size

352 kB

Total Files

28

Last publish

Collaborators

  • rflih_
  • nael-panora