WalletProvider

A React context provider component that supplies Wallet-related data to its child components.

This component serves as a wrapper around the WalletProviderContext.Provider and passes the provided wallet data down to all of its child components through the context API.

Example

Basic usage

import {
WalletProvider,
WalletIcon,
WalletName,
} from "thirdweb/react";
<WalletProvider id="io.metamask">
<WalletIcon />
<WalletName />
</WalletProvider>;
function WalletProvider(
props: PropsWithChildren<WalletProviderProps>,
): Element;

Parameters

Type

let props: PropsWithChildren<WalletProviderProps>;

Returns

let returnType: Element;