Docs

ConnectButtonProps

Props for the ConnectButton component

type ConnectButtonProps = {
accountAbstraction?: SmartWalletOptions;
appMetadata?: AppMetadata;
autoConnect?: { timeout: number } | boolean;
chain?: Chain;
chains?: Array<Chain>;
client: ThirdwebClient;
locale?: LocaleId;
onConnect?: (wallet: Wallet) => void;
recommendedWallets?: Array<Wallet>;
showAllWallets?: boolean;
signInButton?: {
className?: string;
label?: string;
style?: React.CSSProperties;
};
supportedTokens?: SupportedTokens;
switchButton?: {
className?: string;
label?: string;
style?: React.CSSProperties;
};
theme?: "dark" | "light" | Theme;
walletConnect?: { projectId?: string };
wallets?: Array<Wallet>;
};