Docs

ConnectWalletProps

type ConnectWalletProps = {
  auth?: {
    loginOptional?: boolean;
    onLogin?: (token: string) => void;
    onLogout?: () => void;
  };
  btnTitle?: string;
  className?: string;
  detailsBtn?: () => JSX.Element;
  detailsModalFooter?: (props: { close: () => void }) => JSX.Element;
  displayBalanceToken?: Record<number, string>;
  hideDisconnect?: boolean;
  hideSwitchToPersonalWallet?: boolean;
  hideTestnetFaucet?: boolean;
  modalSize?: "compact" | "wide";
  modalTitle?: string;
  modalTitleIconUrl?: string;
  networkSelector?: Omit<
    NetworkSelectorProps,
    "theme" | "onClose" | "chains" | "open"
  >;
  onConnect?: () => void;
  privacyPolicyUrl?: string;
  style?: React.CSSProperties;
  supportedTokens?: SupportedTokens;
  switchNetworkBtnTitle?: string;
  switchToActiveChain?: boolean;
  termsOfServiceUrl?: string;
  theme?: "dark" | "light" | Theme;
  welcomeScreen?: WelcomeScreen;
};