The props for the component.
Class name to be added to the root element of ConnectEmbed
theme for the ConnectEmbed
If a theme is set on the ThirdWebProvider
component, it will be used as the default theme for all thirdweb components, else the default will be "dark"
theme can be set to either "dark" or "light" or a custom theme object.
You can also import lightTheme
or darkTheme
functions from @thirdweb-dev/react
to use the default themes as base and overrides parts of it.
CSS styles to be applied to the root element of ConnectEmbed
If provided, Embed will show a Terms of Service message at the bottom with below link
If provided, Embed will show a Privacy Policy message at the bottom with below link
Enforce that users must sign in with their wallet using auth after connecting their wallet.
This requires the authConfig
prop to be set on the ThirdWebProvider
component.
The auth
prop accepts an object with the following properties:
loginOptional
- specify whether signing in is optional or not. By default it is false
( sign in is required ) if authConfig
is set on ThirdWebProvider
onLogin
- Callback to be called after user signs in with their wallet
onLogout
- Callback to be called after user signs out
Callback to be called on successful connection of wallet
Note that this does not include the sign in, If you want to call a callback after user connects AND signs in with their wallet, use auth.onLogin
prop instead
By default ConnectWallet shows "Powered by Thirdweb" branding at the bottom of the ConnectWallet Modal.
If you want to hide the branding, set this prop to false