@alephium/web3-react
Version:
React components for Alephium Web3.
37 lines (36 loc) • 1.16 kB
TypeScript
import { ReactNode } from 'react';
export type ProviderTheme = 'simple-light' | 'simple-dark' | 'web95' | 'retro' | 'soft' | 'midnight' | 'minimal' | 'rounded' | 'nouns';
export type Theme = Exclude<ProviderTheme, 'simple-light' | 'simple-dark'> | 'auto';
export type Mode = 'light' | 'dark' | 'auto';
export type CustomTheme = any;
export declare const connectorIds: readonly ["injected", "walletConnect", "desktopWallet"];
export type ConnectorId = (typeof connectorIds)[number];
export type InjectedProviderId = string;
export type CustomStyle = {
theme?: Theme;
mode?: Mode;
customTheme?: CustomTheme;
};
export type Connector = {
id: ConnectorId;
name?: string;
shortName?: string;
logos: {
default: ReactNode;
transparent?: ReactNode;
connectorButton?: ReactNode;
qrCode?: ReactNode;
appIcon?: ReactNode;
mobile?: ReactNode;
};
logoBackground?: string;
scannable?: boolean;
extensions?: {
[key: string]: string;
};
appUrls?: {
[key: string]: string;
};
extensionIsInstalled?: () => boolean;
defaultConnect?: () => void;
};