AccountProvider

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

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

Example

import {
AccountProvider,
AccountAvatar,
AccountName,
AccountAddress,
} from "thirdweb/react";
<AccountProvider>
<AccountAvatar />
<AccountName />
<AccountAddress />
</AccountProvider>;
function AccountProvider(
props: PropsWithChildren<AccountProviderProps>,
): Element;

Parameters

Type

let props: PropsWithChildren<AccountProviderProps>;

Returns

let returnType: Element;