UI Components
DynamicMultiWalletPromptsWidget
Summary
The DynamicMultiWalletPromptsWidget provides a UI for multi-wallet without it being bundled as part of the DynamicWidget or DynamicUserProfile.
This component should not be used with DynamicWidget or DynamicUserProfile.
This component provides the same multi-wallet prompts which are found in the DynamicWidget and used when the user changes wallets or starts linking a new wallet, but in a standalone modal.
Example
import {
DynamicContextProvider,
DynamicMultiWalletPromptsWidget,
} from '@dynamic-labs/sdk-react-core';
const App = () => {
return (
<DynamicContextProvider settings={{ environmentId: '<env id>' }}>
<DynamicMultiWalletPromptsWidget />
<Views />
</DynamicContextProvider>
)
}
Now the multi-wallet prompts will open automatically in a modal when the user switches their wallet or starts linking a new wallet
Was this page helpful?