@glitter-finance/widget
v0.4.2
Published
Glitter Finance Bridge Widget Component
Downloads
13
Keywords
Readme
Glitter Bridge Widget
Installation
npm i @glitter-finance/sdk-web @glitter-finance/widget
Config & Usage
import type { WidgetConfiguration } from "@glitter-finance/widget";
import { Widget } from "@glitter-finance/widget";
import type { ChainNames } from "@glitter-finance/sdk-web";
import type { Theme } from "@mui/material";
const myConfig: WidgetConfiguration = {
options: {
sourceToken: string;
sourceNetwork: (typeof ChainNames)[keyof typeof ChainNames];
sourceWalletAddress: string;
sourceWallet: "defly" | "pera" | "phantom" | "solflare" | "metamask" | "coin98" | "core" | "walletConnect" | "tronlink" | "exodus"
};
features: {
integrationSection: boolean;
};
themeOverrides: Partial<Theme>;
}
export function MyApp() {
return <Widget config={myConfig} />
}