@huma-shan/widgets
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published

Huma Widgets

The @humafinance/widgets package is an npm package of React components used to provide subsets of the Huma Finance Protocol functionality in a small user interface element for invoice factoring.

Installation

Install the widgets library via npm or yarn.

yarn add @humafinance/widgets
npm i --save @humafinance/widgets

Invoice factoring borrow widget

import { InvoiceFactoringBorrowWidget } from '@humafinance/widgets'

export const InvoiceFactoringOneTimePage = () => {
  return (
    <InvoiceFactoringBorrowWidget
      poolName='pool name'
      tokenId={tokenId}
      handleClose={handleClose}
    />
  )
}

export const InvoiceFactoringRecurringPage = () => {
  return (
    <InvoiceFactoringBorrowWidget
      poolName='pool name'
      tokenId={tokenId}
      shouldCallApproveForAll
      handleClose={handleClose}
    />
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @huma-shan/widgets

Weekly Downloads

1

Version

0.3.4

License

none

Unpacked Size

14.4 MB

Total Files

166

Last publish

Collaborators

  • huma-shan