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" />

就像 ConnectButtonWalletButton.Custom 組件適用於自訂實現和樣式設置。

<WalletButton.Custom wallet="rainbow">
{({ ready, connect }) => {
return (
<button type="button" disabled={!ready} onClick={connect} >
Connect Rainbow
</button>
);
}}
</WalletButton.Custom>

大多數 dApps 最佳選擇是 ConnectButton。參考 這裡 的文檔以獲得更多關於 WalletButton 採用和使用案例的信息。

按下面的按鈕查看這個 RainbowKit 入口的外觀。