@goblinsax/loan-widget
TypeScript icon, indicating that this package has built-in type declarations

0.0.15 • Public • Published

Goblin Sax Loan Widget

A loan widget wirtten in React and Typescript that utilizes the Goblin Sax SDK to provide instant loan on whitelisted NFTs. The widget is implemented in React and meant to used as a React component. The widget requires Goblin Sax API Key. Contact Us if you don't have it.

The widget comes with default light mode, but can configure to dark mode. The widget is responsive by container query, and can be used on small screens and large screens. The action color can also be configured. The default action color is green.

Widget Images

Light Mode

Dark Mode

Custom Blue Color

Links

npm

Install

npm i @goblinsax/loan-widget

Example

Demo
Demo Repo

Getting Started

import { Loans } from "@goblinsax/loan-widget";
<Loans lightOrDark={'light'} mainColor={"#00D092"} signer={signer} GS_API_KEY={GS_API_KEY}/>

Props

Prop Type Description
lightOrDark string 'light' or 'dark'
mainColor string hex color code
signer string signer from ethers
GS_API_KEY string Goblin Sax API Key

Readme

Keywords

none

Package Sidebar

Install

npm i @goblinsax/loan-widget

Weekly Downloads

0

Version

0.0.15

License

ISC

Unpacked Size

5.09 MB

Total Files

85

Last publish

Collaborators

  • goblinsax