UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

33 lines (32 loc) 1.23 kB
import React from 'react'; import { type ResponsiveValue } from '../../css/sprinkles.css'; import { ConnectButtonRenderer } from './ConnectButtonRenderer'; type AccountStatus = 'full' | 'avatar' | 'address'; type ChainStatus = 'full' | 'icon' | 'name' | 'none'; export interface ConnectButtonProps { accountStatus?: ResponsiveValue<AccountStatus>; showBalance?: ResponsiveValue<boolean>; chainStatus?: ResponsiveValue<ChainStatus>; label?: string; showChainSelector?: boolean; suffixIcon?: React.ReactNode; } export declare function ConnectButton({ accountStatus, chainStatus, label, showBalance, showChainSelector, suffixIcon, }: ConnectButtonProps): React.JSX.Element; export declare namespace ConnectButton { var __defaultProps: { readonly accountStatus: "full"; readonly chainStatus: { readonly largeScreen: "full"; readonly smallScreen: "icon"; }; readonly label: "Sign In"; readonly showBalance: { readonly largeScreen: true; readonly smallScreen: false; }; readonly showChainSelector: true; readonly suffixIcon: null; }; var Custom: typeof ConnectButtonRenderer; } export {};