4.2.0 • Published 17 days ago

@reef-knot/connect-wallet-modal v4.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
17 days ago

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 '@reef-knot/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 '@reef-knot/connect-wallet-modal'

Use it like this:

<WalletsModalForEth {...props} />

How to configure the wallets list

You can control displayed wallet connection buttons from the list of wallets in the modal. Wallets will be displayed in the specified sequence. Use the walletsShown property like this:

<WalletsModalForEth
  walletsShown={[
    'metamask',
    'walletconnect',
    'brave',
    'dappBrowserInjected',
  ]}
/>

How to pin certain wallet at top of the list

You can pin certain wallets to display it at the top of the list. Use the walletsPinned property like this:

<WalletsModalForEth
  walletsPinned={['dappBrowserInjected']}
/>
4.2.0

17 days ago

4.1.2

20 days ago

4.1.0

23 days ago

4.0.0

1 month ago

3.0.2

2 months ago

3.0.1

2 months ago

3.0.0

2 months ago

2.1.0

2 months ago

2.0.0

2 months ago

1.17.1

3 months ago

1.17.0

4 months ago

1.16.0

5 months ago

1.15.0

5 months ago

1.14.0

5 months ago

1.13.0

5 months ago

1.12.0

5 months ago

1.11.1

5 months ago

1.8.2

6 months ago

1.9.0

6 months ago

1.8.1

6 months ago

1.8.0

6 months ago

1.6.2

9 months ago

1.7.0

7 months ago

1.6.1

10 months ago

1.6.0

10 months ago

1.5.1

10 months ago

1.5.0

10 months ago

1.8.3

6 months ago

1.11.0

5 months ago

1.10.0

6 months ago

1.4.3

10 months ago

1.4.2

10 months ago

1.2.0

12 months ago

1.4.1

11 months ago

1.4.0

11 months ago

1.3.1

12 months ago

1.3.0

12 months ago

1.1.1

1 year ago

1.0.2

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago