ConnectWallet
ConnectWallet component renders a button which when clicked opens a modal to allow users to connect to various wallets. It is extremely customizable and very easy to use.
To Configure which wallets to show in the ConnectWallet Modal, you need to configure the
supportedWallets
prop in theThirdwebProvider
component which wraps your entire application.To display a
Recommended
tag below a wallet provider, pass in therecommended: true
property in the wallet configurator function.If
supportedWallets
is not configured in theThirdwebProvider
, the ConnectWallet Modal show the default wallets:Render the
ConnectWallet
component anywhere in your application. Refer to Props to see the configuration options available
You can set the locale
prop of ThirdwebProvider
component to change the language used in the ConnectWallet Modal.
Each Wallet Configurator function returns an object. This object contains the metadata and UI of the Wallet. You can choose to override them according to your needs.
You can then pass the modified config to the supportedWallets
prop in the ThirdwebProvider
component.
If you want to embed the ConnectWallet Modal UI directly in page instead of opening a Modal, you can use the ConnectEmbed
component instead.