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>
대부분의 dApp은 ConnectButton을 사용하는 것이 가장 좋습니다. WalletButton
채택 및 사용 사례에 대한 자세한 정보는 여기에서 문서를 참조하세요.
아래 버튼을 눌러 이 RainbowKit 진입점이 어떻게 보이는지 확인하세요.