🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@rnb-web3/connect-wallet-modal

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rnb-web3/connect-wallet-modal

Provides a modal window with buttons for connection with various crypto wallets.

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
11
-8.33%
Maintainers
3
Weekly downloads
 
Created
Source

Connect Wallet Modal

Provides a modal window with buttons for connection with various crypto wallets.

Custom

You can configure the list of wallets displayed in the modal. The package provides wallet connection buttons that are meant to be used inside the modal. You can use them, or you can make your own.

Import the basic WalletsModal component with required wallet connection buttons:

import {
  WalletsModal,
  ConnectMetamask,
  ConnectWalletConnect,
} from "@rnb-web3/connect-wallet-modal";

Use it like this:

<WalletsModal
  open={isOpen}
  onClose={handleClose}
  shouldInvertWalletIcon={false} // set to true for the dark color theme
>
  {(commonProps) => (
    <>
      <ConnectMetamask key="Metamask" {...commonProps} />
      <ConnectWalletConnect key="WalletConnect" {...commonProps} />
    </>
  )}
</WalletsModal>

For Ethereum

The package provides the modal variant with the predefined list of wallets, which work with the Ethereum network.

Import the component:

import { WalletsModalForEth } from "@rnb-web3/connect-wallet-modal";

Use it like this:

<WalletsModalForEth {...props} />

How to hide a wallet

You can hide one or several wallet connection buttons from the list of wallets in the modal.
Use the hiddenWallets property like this:

<WalletsModalForEth hiddenWallets={["Metamask"]} />

FAQs

Package last updated on 19 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts