JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3657
  • Score
    100M100P100Q125401F
  • License MIT

React wrapper for Leen OnRamp

Package Exports

  • @leendev/onramp
  • @leendev/onramp/dist/LeenOnRamp.es.js
  • @leendev/onramp/dist/LeenOnRamp.umd.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@leendev/onramp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Leen OnRamp

OnRamp is Leen's embeddable connection onboarding component. By integrating OnRamp into your workflow, you enable your users to effortlessly create new connections with all of the vendors supported by Leen.

Usage

import React, { useState } from "react";
import { LeenOnRamp, LeenOnRampResponse } from "@leendev/onramp";

interface LeenOnRampDemoProps {
  connectionInviteToken: string;
}

const LeenOnRampDemo: React.FC<LeenOnRampDemoProps> = ({ connectionInviteToken }) => {
    // connection creation/ update response
    const [onRampResponse, setLeenOnRampResponse] = useState<LeenOnRampResponse | undefined>(undefined);

    // control opening and closing of modal
    const [isModalOpen, setIsModalOpen] = useState(false);

    return (
    <div>
        <button onClick={() => setIsModalOpen(true)}>
        Open Leen OnRamp
        </button>
        {isModalOpen && (
            <LeenOnRamp
                token={connectionInviteToken}
                setLeenOnRampResponse={setLeenOnRampResponse}
                setShowLeenOnRamp={setIsModalOpen}
            />
        )}
    </div>
    );
}

export default LeenOnRampDemo;

Support

Currently, Leen OnRamp only supports all versions of React. If you would like support for other JS runtimes, please reach out to support@leen.dev