WalletButton
WalletButton
注記: WalletButton
は現在EIP-1193ウォレット標準に依存していますが、近い将来EIP-6963をサポートする予定です。
新しいWalletButton
コンポーネントは、dAppsがカスタムウォレットリストの実装をRainbowKitのすべての保守性のないメリットと共に採用するのに役立ちます。
import { WalletButton } from '@rainbow-me/rainbowkit';
<WalletButton wallet="rainbow" />
<WalletButton wallet="metamask" />
<WalletButton wallet="coinbase" />
ConnectButton
と同様に、WalletButton.Custom
コンポーネントはカスタム実装とスタイリングのために利用可能です。
<WalletButton.Custom wallet="rainbow">
{({ ready, connect }) => {
return (
<button
type="button"
disabled={!ready}
onClick={connect}
>
Connect Rainbow
</button>
);
}}
</WalletButton.Custom>
ほとんどのdAppsはConnectButtonで最もよく対応されます。 WalletButton
の採用とユースケースに関する詳細は、こちらのドキュメントを参照してください。
以下のボタンを押して、この RainbowKit エントリポイントがどのように見えるかをご確認ください。