Skip to main content

Connect Wallet

Connect Wallet is an out-of-the-box UI solution for connecting users' wallets to web3 applications and games. With its customizable UI and extensive wallet options, this component allows for flexibility in supporting various wallet types including non-custodial, custodial, smart wallets, and embedded wallets.

Customizations

The following customizations are available for the Connect Wallet component:

Prop NameDescription
Modal SizeThe size of the Connect Wallet modal.
ThemeThe theme of the Connect Wallet component. The default is "light".
Button TitleThe title of the Connect Wallet button.
Modal TitleThe title of the Connect Wallet modal.
Custom CSSApply custom CSS styles to the Connect Wallet button.
Switch To Active ChainAutomatically switch to the active chain when connecting a wallet.
Terms Of Service URLThe URL to the terms of service page.
Privacy Policy URLThe URL to the privacy policy page.
Custom Welcome ScreenCustomize the welcome screen on wide modal.
Custom ButtonCustomize the details button.
AuthorizationEnforce that users must sign in with their wallet.
Modal Drop-Down PositionSpecify where should the dropdown menu open.
Displayed Wallet ProvidersCustomize the wallets that are displayed.

Custom Connect Wallet UI

If you want to use the SDK to connect wallets to your app but would like to create a completely custom UI with your own buttons and modals, you can use the available Hooks, Connectors Configurators and functions.

View the Custom Connect Wallet UI documentation..

Build your own wallet connector using the Wallet SDKK and add this wallet to Connect Wallet by following this guide.

Interacting with Contracts

Once you have connected to a wallet, you can interact with contracts using the useContract hook.

import { useContract } from "@thirdweb-dev/react";

const contract = useContract("<contract-address>");

References

By using the thirdweb SDKs, you can easily connect and execute wallet actions.