Chain Components
Headless UI components for rendering chain name and icon
ChainIcon
Show the native icon of a network
Code
Preview
ChainName
Show the name of the chain
Code
Preview
Headless UI components for rendering chain name and icon
Show the native icon of a network
import { ChainProvider, ChainIcon } from "thirdweb/react";
function App() {
return (
<ChainProvider chain={avalanche}>
<ChainIcon
client={THIRDWEB_CLIENT}
className="h-auto w-20 rounded-full"
loadingComponent={<span>Loading...</span>}
/>
</ChainProvider>
);
}
Show the name of the chain
import { ChainProvider, ChainName } from "thirdweb/react";
function App() {
return (
<ChainProvider chain={avalanche}>
<ChainName loadingComponent={<span>Loading...</span>} />
</ChainProvider>
);
}