Rainbow logo
RainbowKit
2.2.10

錢包按鈕

錢包按鈕

注意:目前WalletButton依賴於EIP-1193錢包標準,但即將支援EIP-6963。

新的WalletButton組件幫助dApps實現自定義錢包列表採用RainbowKit,並且享受其不需維護的好處。

import { WalletButton } from '@rainbow-me/rainbowkit';
<WalletButton wallet="rainbow" />
<WalletButton wallet="metamask" />
<WalletButton wallet="baseAccount" />

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進入點的外觀。